tests: fix int.dom0_update

Environment must be preserved for QUBES_XML_PATH variable used to point
to a secondary (test) qubes.xml.
This commit is contained in:
Marek Marczykowski-Górecki 2016-04-20 02:26:56 +02:00
parent a707840596
commit 7117847816
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -226,7 +226,7 @@ Test package
logpath = os.path.join(self.tmpdir, 'dom0-update-output.txt')
try:
subprocess.check_call(['sudo', 'qubes-dom0-update', '-y'] +
subprocess.check_call(['sudo', '-E', 'qubes-dom0-update', '-y'] +
self.dom0_update_common_opts,
stdout=open(logpath, 'w'),
stderr=subprocess.STDOUT)
@ -256,7 +256,7 @@ Test package
shutil.rmtree('/var/lib/qubes/updates/repodata')
logpath = os.path.join(self.tmpdir, 'dom0-update-output.txt')
try:
subprocess.check_call(['sudo', 'qubes-dom0-update', '-y',
subprocess.check_call(['sudo', '-E', 'qubes-dom0-update', '-y',
'--clean'] +
self.dom0_update_common_opts,
stdout=open(logpath, 'w'),