]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: skip schema validation tests if xmllint is missing
authorEric Blake <eblake@redhat.com>
Thu, 22 Aug 2013 15:30:50 +0000 (09:30 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 23 Aug 2013 21:23:44 +0000 (15:23 -0600)
On IRC, someone complained that a system without xmllint installed
failed a number of tests.

* tests/schematestutils.sh: Probe for xmllint.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/schematestutils.sh

index e594f04cecb42a6737a6355e0c63d9d8ec3ffd1d..a0ff77e8aa68c37d323c67127aea3fdd672cf410 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+(xmllint --version) >/dev/null 2>&1 || skip_test_ 'Missing xmllint'
+
 check_schema () {
 
 DIRS=$1