Skip to content

qemu+rocm/test-package does not preserve quoted arguments

I configured argo and lyra to with:

debci_autopkgtest_args_qemurocm="--ram-size 30720 --cpus 8 --gpu 09:00.0 --qemu-options='-cpu host'"

but found that --qemu-options='-cpu host' was interpreted incorrectly, as can be seen from the logs.

I kind of wish autopkgtest printed the arguments in python list notation rather than using ' '.join([shlex.quote(w) for w in sys.argv]) as I find it difficult to read the latter. It prints

'--qemu-options='"'"'-cpu' 'host'"'"''

which I believe is equivalent to

["--qemu-options='-cpu", "host'"]

In any case, I believe the problem is that /usr/share/debci/backends/qemu+rocm/test-package does not properly quote debci_autopkgtest_args_qemurocm when it calls debci-autopkgtest. As a workaround, I've modified debci-autopkgtest on my worker to always pass --qemu-options='-cpu host'.