From: Mike Frysinger Date: Mon, 1 Jun 2009 18:08:09 +0000 (-0400) Subject: hush_test: filter test output to avoid C lib differences X-Git-Tag: 1_15_0~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff64fb9e3100ff89446b54af3ef80cd86d4730f5;p=oweals%2Fbusybox.git 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 --- 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() # echo Running test: "$x" ( "$THIS_SH" "./$x" >"$name.xx" 2>&1 + # filter C library differences + sed -i \ + -e "/: invalid option /s:'::g" \ + "$name.xx" test $? -eq 77 && rm -f "../$1-$x.fail" && exit 77 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" )