tests: check path to avoid a failing qga/get-vcpus test
commitec72c0e271f2b13953079a4f4dadb49ac5910b54
authorBruce Rogers <brogers@suse.com>
Thu, 2 Mar 2017 19:44:37 +0000 (2 12:44 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 6 Mar 2017 06:54:19 +0000 (6 00:54 -0600)
tree71e345f56332499135db4e933c682fe973cc9123
parentce2eb6c4a044d809caf4dc4e08aed77678f9760e
tests: check path to avoid a failing qga/get-vcpus test

The qga/get-vcpus test fails in a simple chroot environment, as
used in an openSUSE Build Service local build, so first check
that the sysfs based path exists in order to avoid calling this
test in an environment where it won't work right.

Signed-off-by: Bruce Rogers <brogers@suse.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/test-qga.c