[libosinfo] tests: skip schema check if xmllint is missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
This makes it more obvious why the test fails/isn't being run.
Cheers,
 -- Guido

 test/test-xml-validate |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/test-xml-validate b/test/test-xml-validate
index e5be325..93a2d6b 100755
--- a/test/test-xml-validate
+++ b/test/test-xml-validate
@@ -45,4 +45,8 @@ exit $ret
 DIRS="oses hypervisors devices"
 SCHEMA="libosinfo.rng"
 
-check_schema "$DIRS" "$SCHEMA"
+if xmllint --version >/dev/null 2>&1; then
+        check_schema "$DIRS" "$SCHEMA"
+else
+        skip_test_ 'xmllint not found'
+fi
-- 
1.7.10


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux