[PATCH] Don't use non-standard echo options for fdtget-runtest.sh

David Gibson david at gibson.dropbear.id.au
Mon Mar 19 12:56:33 EST 2012


fdtget-runtest.sh currently uses the "-e" option to echo, for interpreting
string escapes.  But this option is only understood by some versions of
echo - the one in bash does, but the one in dash does not.  In fact since
I reworked the fdtget tests a while back, we no longer need the escape
expanding feature of echo here, so this patch simple removes the -e to
fix the problem (the testsuite now passes when /bin/sh is dash).

Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/fdtget-runtest.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/fdtget-runtest.sh b/tests/fdtget-runtest.sh
index 982fbe1..dac7f9a 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"
-echo -e $expect >$EXPECT
+echo $expect >$EXPECT
 shift
 
 verbose_run_log_check "$LOG" $VALGRIND $DTGET "$@"
-- 
1.7.9.1



More information about the devicetree-discuss mailing list