]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix exit <> return mix-up in dejagnu
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 15 Dec 2016 23:09:46 +0000 (00:09 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 16 Dec 2016 19:42:01 +0000 (20:42 +0100)
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>
tests/libzebra.tests/testcommands.exp

index d4bfc8231f38170f3a202b9ef31f252f58d5abf5..c5d5a007302ba3103ccdb4940318595819c0a8bf 100644 (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"