mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
43b49470d1
Upgrading to qemu 5.2 breaks TEST-36-NUMAPOLICY like: qemu-system-x86_64: total memory for NUMA nodes (0x0) should equal RAM size (0x20000000) Use the new (as in >=2014) form of memdev in test 36: -object memory-backend-ram,id=mem0,size=512M -numa node,memdev=mem0,nodeid=0 Since some target systems are as old as qemu 1.5.3 (CentOS7) but the new kind to specify was added in qemu 2.1 this needs to add version parsing and add the argument only when qemu is >=5.2. Fixes #17986. Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
14 lines
329 B
Bash
Executable File
14 lines
329 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="test MUMAPolicy= and NUMAMask= options"
|
|
TEST_NO_NSPAWN=1
|
|
. $TEST_BASE_DIR/test-functions
|
|
if qemu_min_version "5.2.0"; then
|
|
QEMU_OPTIONS="-object memory-backend-ram,id=mem0,size=512M -numa node,memdev=mem0,nodeid=0"
|
|
else
|
|
QEMU_OPTIONS="-numa node,nodeid=0"
|
|
fi
|
|
|
|
do_test "$@" 36
|