tests/integ/basic: use export() in get_rootimg_checksum()

volume.path and volume.export() refer to the same thing in lvm_thin and
'file', but not in file-reflink (where volume.path is the -dirty.img,
which doesn't exist if the volume is not started).
This commit is contained in:
Rusty Bird 2018-09-11 23:50:30 +00:00
parent 49e7ce025f
commit 8c117549ad
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -572,7 +572,7 @@ 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'].export()]).\
decode().split(' ')[0]
def _do_test(self):