aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-01 14:08:09 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-01 14:16:43 -0400
commitff64fb9e3100ff89446b54af3ef80cd86d4730f5 (patch)
tree25fbc7aa6359e6c03d41c6201b6b196e12314290
parentf524b6c87f2a34c1fd29dc8ecf9156eb418d4ea0 (diff)
downloadbusybox-w32-ff64fb9e3100ff89446b54af3ef80cd86d4730f5.tar.gz
busybox-w32-ff64fb9e3100ff89446b54af3ef80cd86d4730f5.tar.bz2
busybox-w32-ff64fb9e3100ff89446b54af3ef80cd86d4730f5.zip
hush_test: filter test output to avoid C lib differences
The getopt function in some C libraries wraps the option in single quotes while others do not. Avoid the issue by running sed on the output and strip all quotes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xshell/hush_test/run-all4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all
index 57a5c253b..cb9c5f321 100755
--- a/shell/hush_test/run-all
+++ b/shell/hush_test/run-all
@@ -52,6 +52,10 @@ do_test()
52# echo Running test: "$x" 52# echo Running test: "$x"
53 ( 53 (
54 "$THIS_SH" "./$x" >"$name.xx" 2>&1 54 "$THIS_SH" "./$x" >"$name.xx" 2>&1
55 # filter C library differences
56 sed -i \
57 -e "/: invalid option /s:'::g" \
58 "$name.xx"
55 test $? -eq 77 && rm -f "../$1-$x.fail" && exit 77 59 test $? -eq 77 && rm -f "../$1-$x.fail" && exit 77
56 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" 60 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
57 ) 61 )