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

Eric Blake eblake at redhat.com
Fri Aug 23 22:27:03 UTC 2013


On 08/22/2013 08:43 PM, Osier Yang wrote:
> On 23/08/13 04:08, Eric Blake wrote:
>> 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 at redhat.com>
>> ---
>>   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
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130823/fa781055/attachment-0001.sig>


More information about the libvir-list mailing list