[PATCH 3/3] tests: Add test for virDomainGetSecurityLabelList

Luke Yue lukedyue at gmail.com
Thu Sep 2 12:29:36 UTC 2021


Signed-off-by: Luke Yue <lukedyue at gmail.com>
---
 tests/virshtest.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/virshtest.c b/tests/virshtest.c
index 0d703f3765..4fb4799456 100644
--- a/tests/virshtest.c
+++ b/tests/virshtest.c
@@ -69,6 +69,7 @@ Managed save:    no\n\
 Security model:  testSecurity\n\
 Security DOI:    \n\
 Security labels: " SECURITY_LABEL "\n\
+                 " SECURITY_LABEL "\n\
 Messages:        " FC5_MESSAGES "\n\
 \n";
 
@@ -237,7 +238,8 @@ static int testCompareDominfoByName(const void *data G_GNUC_UNUSED)
 
 static int testCompareTaintedDominfoByName(const void *data G_GNUC_UNUSED)
 {
-    const char *const argv[] = { VIRSH_CUSTOM, "dominfo", "fc5", NULL };
+    const char *const argv[] = { VIRSH_CUSTOM, "dominfo", "fc5",
+                                 "--full-seclabels", NULL };
     const char *exp = dominfo_fc5;
     return testCompareOutputLit(exp, "\nCPU time:", argv);
 }
-- 
2.33.0




More information about the libvir-list mailing list