DORMANTno replies

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

From: David Gibson <hidden>
Date: 2012-03-19 01:56:33
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help