tests: adjust for variable volume path
LVM volumes now have variable volume path. Compare strip path before comparing content's hash in tests.
This commit is contained in:
parent
d211a2771a
commit
e644378f18
@ -570,7 +570,8 @@ class TC_03_QvmRevertTemplateChanges(qubes.tests.SystemTestCase):
|
|||||||
|
|
||||||
def get_rootimg_checksum(self):
|
def get_rootimg_checksum(self):
|
||||||
return subprocess.check_output(
|
return subprocess.check_output(
|
||||||
['sha1sum', self.test_template.volumes['root'].path])
|
['sha1sum', self.test_template.volumes['root'].path]).\
|
||||||
|
decode().split(' ')[0]
|
||||||
|
|
||||||
def _do_test(self):
|
def _do_test(self):
|
||||||
checksum_before = self.get_rootimg_checksum()
|
checksum_before = self.get_rootimg_checksum()
|
||||||
|
Loading…
Reference in New Issue
Block a user