diff options
author | Karel Zak | 2017-12-06 14:21:38 +0100 |
---|---|---|
committer | Karel Zak | 2017-12-06 14:21:38 +0100 |
commit | 9deb8c7dfd9b119884543416e4c681cbe21d97b2 (patch) | |
tree | 8d442b0494fbd0faeadd4feb59367d32ab7d34b9 /tests/run.sh | |
parent | setarch: minor code clean up (diff) | |
download | kernel-qcow2-util-linux-9deb8c7dfd9b119884543416e4c681cbe21d97b2.tar.gz kernel-qcow2-util-linux-9deb8c7dfd9b119884543416e4c681cbe21d97b2.tar.xz kernel-qcow2-util-linux-9deb8c7dfd9b119884543416e4c681cbe21d97b2.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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" |