From 1f0782057993b4658a2c8b4bb671a69863e78015 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Sat, 22 Jan 2022 11:49:46 +0100 Subject: [PATCH] qa/run_xfstests_qemu.sh: fall back to ide disks if needed Signed-off-by: Ilya Dryomov --- qa/run_xfstests_qemu.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qa/run_xfstests_qemu.sh b/qa/run_xfstests_qemu.sh index 40300cea6fe..8463a12dc49 100644 --- a/qa/run_xfstests_qemu.sh +++ b/qa/run_xfstests_qemu.sh @@ -15,10 +15,19 @@ cd "${TESTDIR}" wget -O "${SCRIPT}" "${URL_BASE}/${SCRIPT}" chmod +x "${SCRIPT}" +TEST_DEV="/dev/vdb" +if [[ ! -b "${TEST_DEV}" ]]; then + TEST_DEV="/dev/sdb" +fi +SCRATCH_DEV="/dev/vdc" +if [[ ! -b "${SCRATCH_DEV}" ]]; then + SCRATCH_DEV="/dev/sdc" +fi + # tests excluded fail in the current testing vm regardless of whether # rbd is used -./"${SCRIPT}" -c 1 -f xfs -t /dev/vdb -s /dev/vdc \ +./"${SCRIPT}" -c 1 -f xfs -t "${TEST_DEV}" -s "${SCRATCH_DEV}" \ 1-7 9-17 19-26 28-49 51-61 63 66-67 69-79 83 85-105 108-110 112-135 \ 137-170 174-191 193-204 206-217 220-227 230-231 233 235-241 243-249 \ 251-262 264-278 281-286 288-289