From 48d6ae1fb62b0e33cc42ce17068b72b8c25abf94 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 22 Aug 2013 09:30:50 -0600 Subject: [PATCH] tests: skip schema validation tests if xmllint is missing 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 --- tests/schematestutils.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh index e594f04cec..a0ff77e8aa 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 -- GitLab