From: Shuah Khan Date: Wed, 2 Jul 2014 22:22:35 +0000 (-0700) Subject: tools: cpu-hotplug fix unexpected operator error X-Git-Tag: MMI-PSA29.97-13-9~11979^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1bd702e665d5c2bacc735bdaf480cf7c220319c0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tools: cpu-hotplug fix unexpected operator error on-off-test uses "$UID != 0" to test for root, but $UID is a construct specific to bash. Using /bin/sh that isn't bash results in the following error (due to the "$UID" part expanding to nothing): ./on-off-test.sh: 9: [: !=: unexpected operator Change Makefile to use bash instead. Signed-off-by: Shuah Khan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/tools/testing/selftests/cpu-hotplug/Makefile b/tools/testing/selftests/cpu-hotplug/Makefile index ae5faf9aade2..790c23a9db44 100644 --- a/tools/testing/selftests/cpu-hotplug/Makefile +++ b/tools/testing/selftests/cpu-hotplug/Makefile @@ -1,6 +1,6 @@ all: run_tests: - @/bin/sh ./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]" + @/bin/bash ./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]" clean: