[PATCH 1/6] nodedevmdevctltest: Rename mdevctl-list-empty test case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 .../{mdevctl-list-empty.json => mdevctl-list-empty-array.json}  | 0
 ...vctl-list-empty.out.xml => mdevctl-list-empty-array.out.xml} | 0
 tests/nodedevmdevctltest.c                                      | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename tests/nodedevmdevctldata/{mdevctl-list-empty.json => mdevctl-list-empty-array.json} (100%)
 rename tests/nodedevmdevctldata/{mdevctl-list-empty.out.xml => mdevctl-list-empty-array.out.xml} (100%)

diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty.json b/tests/nodedevmdevctldata/mdevctl-list-empty-array.json
similarity index 100%
rename from tests/nodedevmdevctldata/mdevctl-list-empty.json
rename to tests/nodedevmdevctldata/mdevctl-list-empty-array.json
diff --git a/tests/nodedevmdevctldata/mdevctl-list-empty.out.xml b/tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml
similarity index 100%
rename from tests/nodedevmdevctldata/mdevctl-list-empty.out.xml
rename to tests/nodedevmdevctldata/mdevctl-list-empty-array.out.xml
diff --git a/tests/nodedevmdevctltest.c b/tests/nodedevmdevctltest.c
index 4dc524b5a5..c04b05c417 100644
--- a/tests/nodedevmdevctltest.c
+++ b/tests/nodedevmdevctltest.c
@@ -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");
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux