numam-spdk/test/vhost
Tomasz Zawadzki c733cd682f scripts/common: set special name to test partitions
SPDK test script can fail during any point of the
execution. To keep using the same devices
between test runs in CI, those devices have to
be cleaned between runs.

To select device for tests or to clean before tests,
the partition table and lack of mount points is used.
SPDK GPT partitions were always considered not in use.
Meanwhile Linux GPT were not, even if lacking a mount
point.

Some of the SPDK tests create Linux GPT partitions,
which might remain after a test run.

Linux GPT partitions created during tests now contain
"SPDK_TEST" as part of their partition name.
This allows marking such block devices as 'not in use',
to be cleaned and used in further SPDK test.

fixes #2345

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I0098776239da9b0c5dcc748625485284e4863525
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11220
Reviewed-by: Michal Berger <michallinuxstuff@gmail.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-01-26 19:07:43 +00:00
..
common test/vhost: replace master_core with main_core 2020-12-03 09:41:07 +00:00
fio test/vhost: use getopts in vhost_run function 2021-03-29 07:20:50 +00:00
fiotest spelling: test 2021-12-03 08:13:22 +00:00
fuzz check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
hotplug test/vhost: fix getting device traddr 2021-11-18 08:18:04 +00:00
initiator test/vhost: verify cpumask argument for controller creation 2021-02-04 08:35:08 +00:00
integrity scripts/common: set special name to test partitions 2022-01-26 19:07:43 +00:00
lvol test/vhost: Commonize some of the environment 2021-06-04 22:52:21 +00:00
migration test/vhost: Make sure only Mellanox NICs are used for vhost tests 2021-07-22 13:21:01 +00:00
other test/vhost: use getopts in vhost_run function 2021-03-29 07:20:50 +00:00
perf_bench test/vhost: add vfio_user mode to performance scripts 2022-01-20 07:55:58 +00:00
readonly scripts/common: set special name to test partitions 2022-01-26 19:07:43 +00:00
shared test/vhost: don't save verify state files in shared test 2021-08-23 08:48:05 +00:00
vhost_boot test/vhost: use getopts in vhost_run function 2021-03-29 07:20:50 +00:00
windows test: removal deprecated sys_sgsw user location 2021-04-13 05:13:50 +00:00
common.sh test/vhost: add socket option only for vhost target 2022-01-20 07:55:58 +00:00
manual.sh test/vhost: Commonize some of the environment 2021-06-04 22:52:21 +00:00
vhost.sh test/vhost: Commonize some of the environment 2021-06-04 22:52:21 +00:00