]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: drop the trailing whitespace from the QEMU version check
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 16 Dec 2020 15:33:50 +0000 (16:33 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 16 Dec 2020 15:38:26 +0000 (16:38 +0100)
commitf26d09146088eefb577035ff59bd68114be08432
tree0fb5e5069d3634c8445d75ba7ff33b905397ff50
parentb43dfb6e6ed51e3b01ce1ff4f451e280ad63775a
test: drop the trailing whitespace from the QEMU version check

I suspect the original version of the regex was written on a system,
which prints both the QEMU version and the QEMU package version in the
--version output, like Fedora:

$ /bin/qemu-system-x86_64 --version
QEMU emulator version 4.2.1 (qemu-4.2.1-1.fc32)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

However, Arch Linux prints only the QEMU version:
$ /bin/qemu-system-x86_64 --version
QEMU emulator version 5.2.0
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers

This causes the awk regex to not match the version string, since there's
no whitespace after it, causing the version check to fail (as well as the
TEST-36-NUMAPOLICY) as well.

Follow-up for 43b49470d1f2808555c07f64cd0a1529b7ddd559.
test/test-functions