aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2010-03-02 13:09:00 +0100
committerAndi Kleen <ak@linux.intel.com>2010-03-02 13:09:24 +0100
commit6ee0f7451ff4ed43cf17280d3797f0f29267f929 (patch)
tree3fbdca2cf1503947ab98e5cd412bb2db2951765f
parente9a764e21bcbf1e9d90869349d6080a412918a1e (diff)
downloadmce-test-6ee0f7451ff4ed43cf17280d3797f0f29267f929.tar.gz
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 <gong.chen@linux.intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rwxr-xr-xcases/apei-inj/ucr/cases.sh2
-rwxr-xr-xcases/soft-inj/non-panic/cases.sh2
-rwxr-xr-xcases/soft-inj/panic/cases.sh2
-rwxr-xr-xcases/soft-inj/panic_noser/cases.sh2
-rwxr-xr-xcases/soft-inj/panic_npcc/cases.sh2
-rwxr-xr-xcases/soft-inj/panic_ucr/cases.sh2
-rwxr-xr-xcases/soft-inj/poll_noser/cases.sh2
-rwxr-xr-xcases/soft-inj/poll_ucr/cases.sh2
-rwxr-xr-xcases/soft-inj/recoverable_ucr/cases.sh2
-rwxr-xr-xdrivers/kdump/driver.sh4
-rwxr-xr-xdrivers/kdump/setup.sh2
-rwxr-xr-xdrivers/simple/driver.sh2
-rwxr-xr-xtools/grep_result.sh2
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 <<EOF > $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.
#