From 9deb8c7dfd9b119884543416e4c681cbe21d97b2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 6 Dec 2017 14:21:38 +0100 Subject: tests: add lock on shared resources (e.g. scsi_debug) The patch enables flock for scsi_debug to avoid collision between tests. The patch also adds ./run.sh --nolocks to disable this feature. Signed-off-by: Karel Zak --- tests/run.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 15e6c6baa..b32463e61 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -47,6 +47,7 @@ while [ -n "$1" ]; do --fake |\ --memcheck-valgrind |\ --memcheck-asan |\ + --nolocks |\ --show-diff |\ --verbose |\ --skip-loopdevs |\ @@ -84,6 +85,7 @@ while [ -n "$1" ]; do echo " --fake do not run, setup tests only" echo " --memcheck-valgrind run with valgrind" echo " --memcheck-asan enable ASAN (requires ./configure --enable-asan)" + echo " --nolocks don't use flock to lock resources" echo " --verbose verbose mode" echo " --show-diff show diff from failed tests" echo " --nonroot ignore test suite if user is root" -- cgit v1.2.3-55-g7522