ceph/qa/run_xfstests_qemu.sh
Ilya Dryomov b274bca1b2 qa/run_xfstests_qemu.sh: disable 251, 260 and 288
All three are skipped with virtio disks:

251	 [not run] FITRIM not supported on /dev/vdc
260	 [not run] FITRIM not supported on /dev/vdc
288	 [not run] FITRIM not supported on /dev/vdc

But 260 and 288 fail with ide disks, where discard defaults to on.  The
ancient kernel in our ubuntu-12.04.qcow2 doesn't support virtio discard
anyway so let's just disable them for consistency.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-01-23 20:16:29 +01:00

39 lines
925 B
Bash

#!/usr/bin/env bash
#
# TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)
set -x
[ -n "${TESTDIR}" ] || export TESTDIR="/tmp/cephtest"
[ -d "${TESTDIR}" ] || mkdir "${TESTDIR}"
URL_BASE="https://git.ceph.com/?p=ceph.git;a=blob_plain;f=qa"
SCRIPT="run_xfstests-obsolete.sh"
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 "${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 \
252-259 261-262 264-278 281-286 289
STATUS=$?
rm -f "${SCRIPT}"
exit "${STATUS}"