[Crosstoolchain-logs] [device-tree-compiler] 275/357: dtc: Remove some small bashisms from test scripts

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit fc6e6f8d916b0d52b59a1c2a66f280e7fb7a80f5
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Thu May 29 16:16:21 2008 +1000

    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 at gibson.dropbear.id.au>
---
 tests/dtc-checkfails.sh | 2 +-
 tests/dtc-fatal.sh      | 2 +-
 tests/tests.sh          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/dtc-checkfails.sh b/tests/dtc-checkfails.sh
index 265173c..c58694f 100755
--- a/tests/dtc-checkfails.sh
+++ b/tests/dtc-checkfails.sh
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-. tests.sh
+. ./tests.sh
 
 for x; do
     shift
diff --git a/tests/dtc-fatal.sh b/tests/dtc-fatal.sh
index 8eb1b44..6781ced 100644
--- a/tests/dtc-fatal.sh
+++ b/tests/dtc-fatal.sh
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-. tests.sh
+. ./tests.sh
 
 verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
 ret="$?"
diff --git a/tests/tests.sh b/tests/tests.sh
index 28b3fb1..30ffead 100644
--- a/tests/tests.sh
+++ b/tests/tests.sh
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list