Browse Source

dtc: Remove some small bashisms from test scripts

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>
main
David Gibson 17 years ago committed by Jon Loeliger
parent
commit
fc6e6f8d91
  1. 2
      tests/dtc-checkfails.sh
  2. 2
      tests/dtc-fatal.sh
  3. 2
      tests/tests.sh

2
tests/dtc-checkfails.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#! /bin/sh

. tests.sh
. ./tests.sh

for x; do
shift

2
tests/dtc-fatal.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#! /bin/sh

. tests.sh
. ./tests.sh

verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
ret="$?"

2
tests/tests.sh

@ -23,7 +23,7 @@ verbose_run () { @@ -23,7 +23,7 @@ verbose_run () {
verbose_run_log () {
LOG="$1"
shift
"$@" &> "$LOG"
"$@" > "$LOG" 2>&1
ret=$?
if [ -z "$QUIET_TEST" ]; then
cat "$LOG" >&2

Loading…
Cancel
Save