[PATCH] tests: skip schema validation tests if xmllint is missing

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

 



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@xxxxxxxxxx>
---
 tests/schematestutils.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh
index e594f04..a0ff77e 100644
--- a/tests/schematestutils.sh
+++ b/tests/schematestutils.sh
@@ -1,5 +1,7 @@
 #!/bin/sh

+(xmllint --version) >/dev/null 2>&1 || skip_test_ 'Missing xmllint'
+
 check_schema () {

 DIRS=$1
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]