]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nodedevmdevctltest: Rename mdevctl-list-empty test case
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Aug 2023 07:57:39 +0000 (09:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Aug 2023 11:45:06 +0000 (13:45 +0200)
The mdevctl-list-empty test case is there to test whether an
empty JSON array "[]" is handled correctly by mdevctl handling
code. Well, mdevctl can output both, an empty JSON array or no
output at all.

Therefore, rename "mdevctl-list-empty" test case to
"mdevctl-list-empty-array" which is more descriptive and also
frees up slot for actual empty output (handled in next commits).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
tests/nodedevmdevctldata/mdevctl-list-empty-array.json [moved from tests/nodedevmdevctldata/mdevctl-list-empty.json with 100% similarity]
tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml [moved from tests/nodedevmdevctldata/mdevctl-list-empty.out.xml with 100% similarity]
tests/nodedevmdevctltest.c

index 4dc524b5a549b06adbf33100f4b65015a745e314..c04b05c417bfef4c3e3725176c906aae9e43e7f1 100644 (file)
@@ -470,7 +470,7 @@ mymain(void)
 
     DO_TEST_LIST_DEFINED();
 
-    DO_TEST_PARSE_JSON("mdevctl-list-empty");
+    DO_TEST_PARSE_JSON("mdevctl-list-empty-array");
     DO_TEST_PARSE_JSON("mdevctl-list-multiple");
 
     DO_TEST_DEFINE("mdev_d069d019_36ea_4111_8f0a_8c9a70e21366");