tests: test-qga, loosen assumptions about host filesystems
commitb3e9e584fcef49be8ca0c355d11030f0bf6231b0
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 20 Oct 2015 16:17:36 +0000 (20 11:17 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 23 Oct 2015 13:57:45 +0000 (23 08:57 -0500)
tree1a9c88f0ec27fc95017cda04e701c8016f1a0b08
parent147482ae35b896808af68c0051ad86d3aae12979
tests: test-qga, loosen assumptions about host filesystems

QGA skips pseudo-filesystems when querying filesystems via
guest-get-fsinfo. On some hosts, such as travis-ci which uses
containers with simfs filesystems, QGA might not report *any*
filesystems. Our test case assumes there would be at least one,
leading to false error messages in these situations.

Instead, sanity-check values iff we get at least one filesystem.

Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/test-qga.c