mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
tests/functional: remove pointless with statement
The xorriso command directly writes to 'filename', so the surrounding 'with' statement is pointless. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20241129173120.761728-5-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
6d509f637e
commit
f29c96d0f5
1 changed files with 3 additions and 4 deletions
|
@ -72,10 +72,9 @@ class HypervisorTest(QemuSystemTest):
|
|||
cwd = os.getcwd()
|
||||
os.chdir(self.workdir)
|
||||
|
||||
with open(filename, "w") as outfile:
|
||||
cmd = "xorriso -osirrox on -indev %s -cpx %s %s" % (iso, path, filename)
|
||||
subprocess.run(cmd.split(),
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
cmd = "xorriso -osirrox on -indev %s -cpx %s %s" % (iso, path, filename)
|
||||
subprocess.run(cmd.split(),
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
|
||||
os.chmod(filename, 0o600)
|
||||
os.chdir(cwd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue