fc6e6f8d91
Some of the helper scripts used to run testcases contain some constructs that are bashisms. Or at least which don't work on dash, the minimal shell used as /bin/sh on recent Ubuntu systems. This patch removes these constructs so that the testsuite will pass "out of the box" on systems where /bin/sh is dash. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14 lines
250 B
Bash
14 lines
250 B
Bash
#! /bin/sh
|
|
|
|
. ./tests.sh
|
|
|
|
verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
|
|
ret="$?"
|
|
|
|
if [ "$ret" -gt 127 ]; then
|
|
FAIL "dtc killed by signal (ret=$ret)"
|
|
elif [ "$ret" != "1" ]; then
|
|
FAIL "dtc returned incorrect status $ret instead of 1"
|
|
fi
|
|
|
|
PASS
|