tools/testing/selftests: don't assume the x bit is set on scripts
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 3 Jul 2013 22:09:23 +0000 (15:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:07 +0000 (16:08 -0700)
The x bit can easily get lost (patch(1) loses it, for example).

Reported-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Dave Young <dyoung@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/cpu-hotplug/Makefile
tools/testing/selftests/memory-hotplug/Makefile

index 12657a5e4bf92dd23ced62e3660ab1acaecd4815..ae5faf9aade21b9d7690a6f423ea40907e6b2257 100644 (file)
@@ -1,6 +1,6 @@
 all:
 
 run_tests:
-       @./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]"
+       @/bin/sh ./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]"
 
 clean:
index 0f49c3f5f58d0460e09aea4aff40d5c6965e927a..350bfeda3aa8ccd9f7e487b85d212110c848d19a 100644 (file)
@@ -1,6 +1,6 @@
 all:
 
 run_tests:
-       @./on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"
+       @/bin/sh ./on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"
 
 clean: