Skip to content

Commit 32d6630

Browse files
committed
qemu: Make the uname check more robust
Doing the uname check as two shell commands seems to be prone to interleaving with other console output. Change it to be a single shell echo, which seems to be more robust.
1 parent ceea26e commit 32d6630

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/qemu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def qemu_main(qconf):
317317

318318
standard_boot(p, qconf.login, qconf.user, qconf.password, boot_timeout, qconf.prompt)
319319

320-
p.send("echo -n 'booted-revision: '; uname -r")
320+
p.send('echo "booted-revision: `uname -r`"')
321321
p.expect(f'booted-revision: {qconf.expected_release}')
322322
p.expect_prompt()
323323

0 commit comments

Comments
 (0)