tests/qtest: device-plug-test: Reverse the usage of double/single quotes
commitfbde3ae8e7b73f4d5c46206ae3d22bcc470c55e1
authorBin Meng <bin.meng@windriver.com>
Wed, 24 Aug 2022 09:40:13 +0000 (24 17:40 +0800)
committerThomas Huth <thuth@redhat.com>
Mon, 29 Aug 2022 13:28:51 +0000 (29 15:28 +0200)
tree13629fb7c905cb7f60f68b48598d0385efa14372
parentb243c73cf4dc7017e28577c4056df0655427a76e
tests/qtest: device-plug-test: Reverse the usage of double/single quotes

The usage of double/single quotes in test_pci_unplug_json_request()
should be reversed to work on both win32 and non-win32 platforms:

- The value of -device parameter needs to be surrounded by "" as
  Windows does not drop '' when passing it to QEMU which causes
  QEMU command line option parser failure.
- The JSON key/value pairs need to be surrounded by '' to make the
  JSON parser happy on Windows.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220824094029.1634519-36-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/device-plug-test.c