From 6ee0f7451ff4ed43cf17280d3797f0f29267f929 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Tue, 2 Mar 2010 13:09:00 +0100 Subject: Work around ubuntu incompatibilities to the linux standard On the Ubuntu platform, sh is linked to dash so that all of these shell scripts can't run correctly. It needs to be substituted with BASH. Signed-off-by: Chen Gong Signed-off-by: Andi Kleen --- cases/apei-inj/ucr/cases.sh | 2 +- cases/soft-inj/non-panic/cases.sh | 2 +- cases/soft-inj/panic/cases.sh | 2 +- cases/soft-inj/panic_noser/cases.sh | 2 +- cases/soft-inj/panic_npcc/cases.sh | 2 +- cases/soft-inj/panic_ucr/cases.sh | 2 +- cases/soft-inj/poll_noser/cases.sh | 2 +- cases/soft-inj/poll_ucr/cases.sh | 2 +- cases/soft-inj/recoverable_ucr/cases.sh | 2 +- drivers/kdump/driver.sh | 4 ++-- drivers/kdump/setup.sh | 2 +- drivers/simple/driver.sh | 2 +- tools/grep_result.sh | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cases/apei-inj/ucr/cases.sh b/cases/apei-inj/ucr/cases.sh index ff4d92c..2364bdc 100755 --- a/cases/apei-inj/ucr/cases.sh +++ b/cases/apei-inj/ucr/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # APEI injection based test cases : memory patrol scrub cases: test cases # are triggered via the apei-inject, and they will not trigger kernel panic. diff --git a/cases/soft-inj/non-panic/cases.sh b/cases/soft-inj/non-panic/cases.sh index 2c25906..d277e11 100755 --- a/cases/soft-inj/non-panic/cases.sh +++ b/cases/soft-inj/non-panic/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases - non-panic cases: test cases # are triggered via the mce-inject tool, and they will not trigger kernel diff --git a/cases/soft-inj/panic/cases.sh b/cases/soft-inj/panic/cases.sh index 865e4ce..919f833 100755 --- a/cases/soft-inj/panic/cases.sh +++ b/cases/soft-inj/panic/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases - panic cases: test cases are # triggered via the mce-inject tool, and they will trigger kernel panic. diff --git a/cases/soft-inj/panic_noser/cases.sh b/cases/soft-inj/panic_noser/cases.sh index 7b6d127..9637b9b 100755 --- a/cases/soft-inj/panic_noser/cases.sh +++ b/cases/soft-inj/panic_noser/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # the mce-inject tool. diff --git a/cases/soft-inj/panic_npcc/cases.sh b/cases/soft-inj/panic_npcc/cases.sh index d6d1e5a..35cc343 100755 --- a/cases/soft-inj/panic_npcc/cases.sh +++ b/cases/soft-inj/panic_npcc/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # the mce-inject tool. diff --git a/cases/soft-inj/panic_ucr/cases.sh b/cases/soft-inj/panic_ucr/cases.sh index b40fbfd..8aec7df 100755 --- a/cases/soft-inj/panic_ucr/cases.sh +++ b/cases/soft-inj/panic_ucr/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # mce-inject tool. diff --git a/cases/soft-inj/poll_noser/cases.sh b/cases/soft-inj/poll_noser/cases.sh index 82929d8..4a3b285 100755 --- a/cases/soft-inj/poll_noser/cases.sh +++ b/cases/soft-inj/poll_noser/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # the mce-inject tool. diff --git a/cases/soft-inj/poll_ucr/cases.sh b/cases/soft-inj/poll_ucr/cases.sh index c34ff3d..dc9fc6a 100755 --- a/cases/soft-inj/poll_ucr/cases.sh +++ b/cases/soft-inj/poll_ucr/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # mce-inject tool. diff --git a/cases/soft-inj/recoverable_ucr/cases.sh b/cases/soft-inj/recoverable_ucr/cases.sh index 61f1036..054a97b 100755 --- a/cases/soft-inj/recoverable_ucr/cases.sh +++ b/cases/soft-inj/recoverable_ucr/cases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Software injection based test cases: test cases are triggered via # mce-inject tool. diff --git a/drivers/kdump/driver.sh b/drivers/kdump/driver.sh index 3866717..6016582 100755 --- a/drivers/kdump/driver.sh +++ b/drivers/kdump/driver.sh @@ -1,4 +1,4 @@ -#!/bin/sh -xe +#!/bin/bash -xe # # Kdump test driver: test case will trigger panic, and then crash # dump. The test result is collected via dumped vmcore. For more @@ -33,7 +33,7 @@ setup_crontab () # crontab in some distros will not read from STDIN. cat < $WDIR/kdump.cron -SHELL=/bin/sh +SHELL=/bin/bash PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin MAILTO=root @reboot cd "$(pwd)"; ${0} $conf >> $WDIR/log 2>&1; cat $WDIR/log > /dev/console diff --git a/drivers/kdump/setup.sh b/drivers/kdump/setup.sh index 4a61f04..f90742c 100755 --- a/drivers/kdump/setup.sh +++ b/drivers/kdump/setup.sh @@ -1,4 +1,4 @@ -#!/bin/sh -ex +#!/bin/bash -ex # # Setup for kdump test driver. # diff --git a/drivers/simple/driver.sh b/drivers/simple/driver.sh index a7d385a..ebc9d2a 100755 --- a/drivers/simple/driver.sh +++ b/drivers/simple/driver.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Simple test driver: run test cases one by one, assuming test case # will not trigger panic or reboot. diff --git a/tools/grep_result.sh b/tools/grep_result.sh index 4e044e8..4ef74ad 100755 --- a/tools/grep_result.sh +++ b/tools/grep_result.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Filter out specified test case results from all results. # -- cgit 1.2.3-korg