Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1702536
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andrew Morton <akpm@linux-foundation.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/5] test_kmod: make selftest executable |
| Date | Thu, 03 Aug 2017 00:50:01 +0200 |
| Message-ID | <uaaCJ-7MS-1@gated-at.bofh.it> (permalink) |
| References | <ua9dD-6W9-11@gated-at.bofh.it> <ua9dE-6W9-29@gated-at.bofh.it> |
| X-Mailer | Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | dmitry.torokhov@gmail.com, keescook@chromium.org, jeyu@redhat.com, rusty@rustcorp.com.au, mmarek@suse.com, pmladek@suse.com, mbenes@suse.cz, jpoimboe@redhat.com, ebiederm@xmission.com, shuah@kernel.org, dan.carpenter@oracle.com, colin.king@canonical.com, dcb314@hotmail.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Wed, 2 Aug 2017 15:43:49 -0700 |
| X-Original-Message-ID | <20170802154349.a4221b87ebb083a83353c270@linux-foundation.org> |
| X-Original-References | <20170802211450.27928-1-mcgrof@kernel.org> <20170802211450.27928-2-mcgrof@kernel.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1702536 |
Show key headers only | View raw
On Wed, 2 Aug 2017 14:14:46 -0700 "Luis R. Rodriguez" <mcgrof@kernel.org> wrote:
> We had just forgotten to do this.
>
> Fixes: 39258f448d71 ("kmod: add test driver to stress test the module loader")
> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
> ---
> tools/testing/selftests/kmod/kmod.sh | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> mode change 100644 => 100755 tools/testing/selftests/kmod/kmod.sh
>
> diff --git a/tools/testing/selftests/kmod/kmod.sh b/tools/testing/selftests/kmod/kmod.sh
> old mode 100644
> new mode 100755
This is pretty fragile - I'm not sure that patch/diff are capable of
communicating a bare chmod. If someone does a "patch -p1 < patch-4.14"
or whatever, this change is likely to get lost.
It's more robust to not care about the x bit at all. Something like
this?
--- a/tools/testing/selftests/lib.mk~a
+++ a/tools/testing/selftests/lib.mk
@@ -14,7 +14,7 @@ all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_
define RUN_TESTS
@for TEST in $(TEST_GEN_PROGS) $(TEST_PROGS); do \
BASENAME_TEST=`basename $$TEST`; \
- cd `dirname $$TEST`; (./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd -;\
+ cd `dirname $$TEST`; (/bin/sh ./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd -;\
done;
endef
(probably incomplete, should presumably use $SHELL or something)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/5] test_kmod: make selftest executable "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-08-02 23:20 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable Andrew Morton <akpm@linux-foundation.org> - 2017-08-03 00:50 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-08-03 01:00 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-08-03 01:50 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable Andrew Morton <akpm@linux-foundation.org> - 2017-08-03 01:50 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable Shuah Khan <shuah@kernel.org> - 2017-08-03 02:10 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable Shuah Khan <shuah@kernel.org> - 2017-08-03 02:00 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable Michael Ellerman <mpe@ellerman.id.au> - 2017-08-08 12:00 +0200
Re: [PATCH 1/5] test_kmod: make selftest executable "Luis R. Rodriguez" <mcgrof@kernel.org> - 2017-08-08 20:00 +0200
csiph-web