diff options
author | Bin Meng <bin.meng@windriver.com> | 2022-08-24 17:40:23 +0800 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-08-29 15:28:51 +0200 |
commit | 94add6ee24d55be96dd029fc506ea9a2df38f8e8 (patch) | |
tree | 89acbcd86e0a591e1ef7d3d0375e6407ddf2ca70 /tests/qtest | |
parent | bf3267e790f2877e99a6aa3c24ce6e4e9f65220d (diff) | |
download | qemu-94add6ee24d55be96dd029fc506ea9a2df38f8e8.zip qemu-94add6ee24d55be96dd029fc506ea9a2df38f8e8.tar.gz qemu-94add6ee24d55be96dd029fc506ea9a2df38f8e8.tar.bz2 |
tests/qtest: prom-env-test: Use double quotes to pass the prom-env option
Single quotes like -prom-env 'nvramrc=cafec0de 4000 l!' in the arguments
are not removed in the Windows environment before it is passed to the
QEMU executable. Such argument causes a failure in the QEMU prom-env
option parser codes.
Change to use double quotes which works fine on all platforms.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220824094029.1634519-46-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest')
-rw-r--r-- | tests/qtest/prom-env-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/prom-env-test.c b/tests/qtest/prom-env-test.c index c2b0448..39ccb59 100644 --- a/tests/qtest/prom-env-test.c +++ b/tests/qtest/prom-env-test.c @@ -58,8 +58,8 @@ static void test_machine(const void *machine) " -machine " PSERIES_DEFAULT_CAPABILITIES; } - qts = qtest_initf("-M %s -accel tcg %s -prom-env 'use-nvramrc?=true' " - "-prom-env 'nvramrc=%x %x l!' ", (const char *)machine, + qts = qtest_initf("-M %s -accel tcg %s -prom-env \"use-nvramrc?=true\" " + "-prom-env \"nvramrc=%x %x l!\" ", (const char *)machine, extra_args, MAGIC, ADDRESS); check_guest_memory(qts); qtest_quit(qts); |