Spdk/test/vhost
Michal Berger 1efd574527 test/vhost: Don't remove QEMU's pidfile when terminating the process
QEMU is fully capable of unlinking its own pidfile so it may happen
that after sending a signal to terminate it, the file is already gone
when we attempt to rm it - in such a case, rm fails leading to overall
test failure. Avoid that by allowing QEMU to do its job.

For cases where QEMU might have potentially failed (e.g. due to a crash)
we leave the rm in with an extra -f on its cmdline.

Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: Ia8d5c73dd76225583a63c1f622835e22ce32e66c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16040
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-12-22 08:53:50 +00:00
..
common test/fio: supress fio output files 2022-06-23 07:43:36 +00:00
fio add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fiotest add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fuzz add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
hotplug add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
initiator add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
integrity add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
lvol add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
migration add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
other add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
perf_bench add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
readonly add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
shared add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
vhost_boot test/vhost_boot: Use string to check for disk device 2022-12-06 08:40:46 +00:00
windows add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common.sh test/vhost: Don't remove QEMU's pidfile when terminating the process 2022-12-22 08:53:50 +00:00
manual.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
vhost.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00