mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
fdtget-runtest.sh: Fix failures when /bin/sh isn't bash
On Ubuntu, /bin/sh is dash (at least by default), and dash's echo doesn't accept the -e option. This means that fdtget-runtest.sh's EXPECT file will contain "-e foo" rather than just "foo", which causes a test failure. To work around this, run /bin/echo instead of (builtin) echo, which has more chance of supporting the -e option. Another possible fix is to change all the #! lines to /bin/bash rather than /bin/sh, and change run_tests.sh to invoke sub-scripts using $SHELL instead of just "sh". However, that would require bash specifically, which may not be desirable. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
de6b76240e
commit
eaec1dbc59
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ rm -f $LOG $EXPECT
|
|||
trap "rm -f $LOG $EXPECT" 0
|
||||
|
||||
expect="$1"
|
||||
echo -e $expect >$EXPECT
|
||||
/bin/echo -e $expect >$EXPECT
|
||||
shift
|
||||
|
||||
verbose_run_log_check "$LOG" $VALGRIND $DTGET "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue