1
0
Fork 0

tests/virtme-run: Expose two CPUs

We're multi threaded, so make things more like reality by exposing more
CPUs using the '-smp 2' qemu option.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2152>
This commit is contained in:
Bartłomiej Piotrowski 2022-02-09 10:56:02 +01:00 committed by Marge Bot
parent 7435bfd0e5
commit 7a7fb863a2

View file

@ -32,7 +32,7 @@ virtme-run \
--pwd \
--kimg "$IMAGE" \
--script-sh "sh -c \"env $VIRTME_ENV $DIRNAME/run-kvm-test.sh \\\"$WRAPPER\\\" \\\"$WRAPPER_ARGS\\\" \\\"$TEST_EXECUTABLE\\\" \\\"$TEST_RESULT_FILE\\\"\"" \
--qemu-opts -cpu host,pdcm=off
--qemu-opts -cpu host,pdcm=off -smp 2
TEST_RESULT="$(cat "$TEST_RESULT_FILE")"
rm "$TEST_RESULT_FILE"