Commit b96cf2ef authored by Pawel Niedzwiecki's avatar Pawel Niedzwiecki Committed by Daniel Verkamp
Browse files

test/common: Separate failing nightly tests



Introduce RUN_NIGHTLY_FAILING flag for nightly tests
that are always or periodically failing.
A new cron job will be added to run test with this flag.

RUN_NIGHTLY_FAILING is set for:
test/vhost/readonly/readonly.sh
test/nvmf/multiconnection/multiconnection.sh
a fio job in test/lib/bdev/blockdev.sh

Change-Id: I32640c0d4b916156c2ee996a9847c7c9e64941f8
Signed-off-by: default avatarPawel Niedzwiecki <pawelx.niedzwiecki@intel.com>
Reviewed-on: https://review.gerrithub.io/403985


Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 21919851
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -151,10 +151,6 @@ if [ $SPDK_TEST_VHOST -eq 1 ]; then
		run_test ./test/vhost/spdk_vhost.sh --integrity
		timing_exit integrity

		timing_enter readonly
		run_test ./test/vhost/spdk_vhost.sh --readonly
		timing_exit readonly

		# timing_enter fs_integrity_scsi
		# run_test ./test/vhost/spdk_vhost.sh --fs-integrity-scsi
		# timing_exit fs_integrity_scsi
@@ -172,6 +168,12 @@ if [ $SPDK_TEST_VHOST -eq 1 ]; then
		timing_exit integrity_lvol_blk_nightly
	fi

	if [ $RUN_NIGHTLY_FAILING -eq 1 ]; then
		timing_enter readonly
		run_test ./test/vhost/spdk_vhost.sh --readonly
		timing_exit readonly
	fi

	timing_enter integrity_lvol_scsi
	run_test ./test/vhost/spdk_vhost.sh --integrity-lvol-scsi
	timing_exit integrity_lvol_scsi
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,9 @@ ulimit -c unlimited
: ${RUN_NIGHTLY:=0}
export RUN_NIGHTLY

: ${RUN_NIGHTLY_FAILING:=0}
export RUN_NIGHTLY_FAILING

if [[ ! -z $1 ]]; then
	if [ -f $1 ]; then
		source $1
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ function run_fio()
{
	if [ $RUN_NIGHTLY -eq 0 ]; then
		LD_PRELOAD=$plugindir/fio_plugin /usr/src/fio/fio --ioengine=spdk_bdev --iodepth=8 --bs=4k --runtime=10 $testdir/bdev.fio "$@"
	else
	elif [ $RUN_NIGHTLY_FAILING -eq 1 ]; then
		# Use size 192KB which both exceeds typical 128KB max NVMe I/O
		#  size and will cross 128KB Intel DC P3700 stripe boundaries.
		LD_PRELOAD=$plugindir/fio_plugin /usr/src/fio/fio --ioengine=spdk_bdev --iodepth=128 --bs=192k --runtime=100 $testdir/bdev.fio "$@"
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ if [ $SPDK_TEST_NVML -eq 1 ]; then
	fi
fi

if [ $RUN_NIGHTLY -eq 1 ]; then
if [ $RUN_NIGHTLY_FAILING -eq 1 ]; then
	run_test test/nvmf/multiconnection/multiconnection.sh
fi