]> xenbits.xensource.com Git - libvirt.git/commitdiff
Don't check the 'connect' command in virsh-all test
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 7 Aug 2012 10:09:15 +0000 (11:09 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 7 Aug 2012 10:59:08 +0000 (11:59 +0100)
The 'virsh-all' test case will invoke each virsh command with
no args. With the 'connect' command this causes virsh to try
to connect to the default URI, which in turn tries to spawn
libvirtd. This is not something we want todo in the test suite,
so skip the 'connect' command.

tests/virsh-all

index 2650b86c5839eb9926c3c9e5a687d1803d76664e..d4e2633db46edd1d4edf0cc3917a4944b48e6e17 100755 (executable)
@@ -25,7 +25,7 @@ fail=0
 
 test_url=test:///default
 
-$abs_top_builddir/tools/virsh -c $test_url help > cmds || framework_failure
+$abs_top_builddir/tools/virsh -c $test_url help | grep -v connect > cmds || framework_failure
 cmds=$(sed -n 's/^    \([^ ][^ ]*\) .*/\1/p' cmds) || framework_failure
 test -n "$cmds" || framework_failure