qemu-ga patch queue
* unbreak qga-test unit test on travis-ci systems by not assuming a disk-based filesystem must be present -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJWKj3LAAoJEDNTyc7xCLWE+wMH/2pqXYDKM7fkH9/ddU3IKoiE b3+VbqQi6aoz13oqEPnBECTkY0dE2AEp/a9TvA+KbjvaK037sUXXJ09xaUz/ATlZ 2qm5mvRYq/2Xv6mfOLQe9z8WzRURXsNRV0Tflf5KRbn1wQnLZGsSaAe70yDDF1l2 udcWbyeyo4iKEx9pYzf1OR/2us3wlvGOhgWKNgFPq3GZJYSSYBXQaog7Jp6j/f/m H7RjKdGRWtthLs4CezN3L4mkkHJUyW6l1HK68rgtjIzWYpzPyxNWuPhIQcTEywEq YWTtpS3MOTu1tluim63qYaSrC7vVxf3rZNgkPsorrtqECP17Rj6ZAjdc/nM86sY= =FW/j -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2015-10-23-tag' into staging qemu-ga patch queue * unbreak qga-test unit test on travis-ci systems by not assuming a disk-based filesystem must be present # gpg: Signature made Fri 23 Oct 2015 15:01:47 BST using RSA key ID F108B584 # gpg: Good signature from "Michael Roth <flukshun@gmail.com>" # gpg: aka "Michael Roth <mdroth@utexas.edu>" # gpg: aka "Michael Roth <mdroth@linux.vnet.ibm.com>" * remotes/mdroth/tags/qga-pull-2015-10-23-tag: tests: test-qga, loosen assumptions about host filesystems Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
1e700f4c6c
@ -273,13 +273,15 @@ static void test_qga_get_fsinfo(gconstpointer fix)
|
||||
g_assert_nonnull(ret);
|
||||
qmp_assert_no_error(ret);
|
||||
|
||||
/* check there is at least a fs */
|
||||
/* sanity-check the response if there are any filesystems */
|
||||
list = qdict_get_qlist(ret, "return");
|
||||
entry = qlist_first(list);
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "name"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "mountpoint"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "type"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "disk"));
|
||||
if (entry) {
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "name"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "mountpoint"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "type"));
|
||||
g_assert(qdict_haskey(qobject_to_qdict(entry->value), "disk"));
|
||||
}
|
||||
|
||||
QDECREF(ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user