tests: fix exit <> return mix-up in dejagnu

exit 0 exits the entire testrunner... Oops.
Also, "unresolved" breaks too many things, so make this a pass.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
[cherry-picked from master e988dfd35b]
This commit is contained in:
David Lamparter 2016-12-16 00:09:46 +01:00
parent 2f9a659926
commit 9d8927ee1f

View File

@ -5,8 +5,8 @@ if {![info exists env(QUAGGA_TEST_COMMANDS)]} {
# sadly, the test randomly fails when configure parameters differ from
# what was used to create testcommands.refout. this can be fixed by
# shipping a matching vtysh_cmd.c, which we'll add after 0.99.23
unresolved "$test_name"
exit 0
pass "$test_name"
return 0
}
spawn sh -c "./testcommands -e 0 < $env(srcdir)/testcommands.in | diff -au - $env(srcdir)/testcommands.refout"