diff --git a/python/t/test820RHBZ912499.py b/python/t/test820RHBZ912499.py index 3dec11352..e59453231 100644 --- a/python/t/test820RHBZ912499.py +++ b/python/t/test820RHBZ912499.py @@ -45,6 +45,9 @@ class Test820RHBZ912499(unittest.TestCase): for _ in range(8)) self.domname = "tmp-" + self.domname + # Pick any old static label + self.label = "system_u:system_r:svirt_t:s0:c392,c662" + self.xml = """ %s @@ -57,12 +60,17 @@ class Test820RHBZ912499(unittest.TestCase): - - + + + + + + + -""" % (self.domname, self.filename) +""" % (self.domname, self.filename, self.label) def test_rhbz912499(self): import libvirt @@ -78,6 +86,7 @@ class Test820RHBZ912499(unittest.TestCase): print("before starting libguestfs") before = check_output(["ls", "-Z", self.filename]) print("disk label = %s" % before) + self.assertTrue(self.label, str(before).split()[0]) # Now see if we can open the domain with libguestfs without # disturbing the label.