]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: relax error condition on build
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 22 Sep 2016 14:42:06 +0000 (11:42 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 13:31:26 +0000 (09:31 -0400)
If the number of CLI collisions is smaller than the expected one,
there's a good chance that Quagga is being built with one or more
daemons disabled. In this case, just print a warning and don't abort
the compilation to allow partial builds.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
vtysh/extract.pl.in

index 924a6696d308377448206435e2fc02f0b91fc6b6..cd19fa754b57c113acf16ab9834f9fb9c67cdc50 100755 (executable)
@@ -233,7 +233,9 @@ my $bad_cli_stomps = 108;
 # please fix your code before submittal
 if ($cli_stomp != $bad_cli_stomps) {
     warn "Expected $bad_cli_stomps command line stomps, but got $cli_stomp instead\n";
-    exit $cli_stomp;
+    if ($cli_stomp > $bad_cli_stomps) {
+        exit $cli_stomp;
+    }
 }
 
 # Check finaly alive $cmd;