[libvirt] [PATCH 1/2] tests: Tweak x86 sysinfo test case

Andrea Bolognani abologna at redhat.com
Thu May 30 09:45:45 UTC 2019


We have a single mock dmidecode script right now, but we're
going to add another one soon, so we need to make sure its
name contains the test case name as a prefix, just like we
already do with all data files.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 tests/sysinfodata/{dmidecode.sh => x86dmidecode.sh} | 0
 tests/sysinfotest.c                                 | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename tests/sysinfodata/{dmidecode.sh => x86dmidecode.sh} (100%)

diff --git a/tests/sysinfodata/dmidecode.sh b/tests/sysinfodata/x86dmidecode.sh
similarity index 100%
rename from tests/sysinfodata/dmidecode.sh
rename to tests/sysinfodata/x86dmidecode.sh
diff --git a/tests/sysinfotest.c b/tests/sysinfotest.c
index 7fa9a2dfd6..ef8ed1e31e 100644
--- a/tests/sysinfotest.c
+++ b/tests/sysinfotest.c
@@ -133,7 +133,7 @@ mymain(void)
     TEST("s390", virSysinfoReadS390);
     TEST("s390-freq", virSysinfoReadS390);
     TEST("ppc", virSysinfoReadPPC);
-    TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/dmidecode.sh");
+    TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/x86dmidecode.sh");
     TEST("arm", virSysinfoReadARM);
     TEST("arm-rpi2", virSysinfoReadARM);
     TEST("aarch64", virSysinfoReadARM);
-- 
2.21.0




More information about the libvir-list mailing list