]> xenbits.xensource.com Git - 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 [new file with mode: 0644]
tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml [new file with mode: 0644]
tests/nodedevmdevctldata/mdevctl-list-empty.json [deleted file]
tests/nodedevmdevctldata/mdevctl-list-empty.out.xml [deleted file]
tests/nodedevmdevctltest.c

diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty-array.json b/tests/nodedevmdevctldata/mdevctl-list-empty-array.json
new file mode 100644 (file)
index 0000000..fe51488
--- /dev/null
@@ -0,0 +1 @@
+[]
diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml b/tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty.json b/tests/nodedevmdevctldata/mdevctl-list-empty.json
deleted file mode 100644 (file)
index fe51488..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[]
diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty.out.xml b/tests/nodedevmdevctldata/mdevctl-list-empty.out.xml
deleted file mode 100644 (file)
index e69de29..0000000
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");