mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
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>
This commit is contained in:
parent
f524b6c87f
commit
ff64fb9e31
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user