summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-12-11 10:05:51 -0700
committerJon Loeliger <jdl@jdl.com>2013-01-06 16:02:42 -0600
commit1760e7ca03894689118646e229ca9487158cd0e8 (patch)
tree6ecb0585cd8d667dbe08d75f8ff9cefa2ffb0ac1
parent19cd5ead0b692c8c10e286252a7f4a725133d8f4 (diff)
downloaddtc-1760e7ca03894689118646e229ca9487158cd0e8.tar.gz
fdtget-runtest.sh: use printf instead of /bin/echo -e
Not all /bin/echo implementations support the -e option. Instead, use printf, which appears to be more widely available than /bin/echo -e. See commit eaec1db "fdtget-runtest.sh: Fix failures when /bin/sh isn't bash" for history. I have tested this on Ubuntu 10.04 with /bin/sh pointing to both dash and bash. Reported-by: Mike Frysinger <vapier@gentoo.org> # and implemented-by Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xtests/fdtget-runtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fdtget-runtest.sh b/tests/fdtget-runtest.sh
index c3a3559..8d8b058 100755
--- a/tests/fdtget-runtest.sh
+++ b/tests/fdtget-runtest.sh
@@ -8,7 +8,7 @@ rm -f $LOG $EXPECT
trap "rm -f $LOG $EXPECT" 0
expect="$1"
-/bin/echo -e $expect >$EXPECT
+printf '%b\n' "$expect" > $EXPECT
shift
verbose_run_log_check "$LOG" $VALGRIND $DTGET "$@"