From 8c117549ad6591d340e2408a07a3e996949a9523 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 11 Sep 2018 23:50:30 +0000 Subject: [PATCH] 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). --- qubes/tests/integ/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/tests/integ/basic.py b/qubes/tests/integ/basic.py index 07cea6cd..2b592182 100644 --- a/qubes/tests/integ/basic.py +++ b/qubes/tests/integ/basic.py @@ -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):