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:
Marek Marczykowski-Górecki 2018-04-14 21:33:38 +02:00
parent d211a2771a
commit e644378f18
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -570,7 +570,8 @@ class TC_03_QvmRevertTemplateChanges(qubes.tests.SystemTestCase):
def get_rootimg_checksum(self):
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):
checksum_before = self.get_rootimg_checksum()