summaryrefslogtreecommitdiffstats
path: root/tests/basic/rpc-coverage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/rpc-coverage.sh')
-rwxr-xr-xtests/basic/rpc-coverage.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/basic/rpc-coverage.sh b/tests/basic/rpc-coverage.sh
index 11d3be66dcb..b7aaef0bcb5 100755
--- a/tests/basic/rpc-coverage.sh
+++ b/tests/basic/rpc-coverage.sh
@@ -437,7 +437,9 @@ function run_tests()
test_chmod;
test_chown;
test_utimes;
- test_locks;
+ if $run_lock_tests; then
+ test_locks;
+ fi
test_readdir;
test_setxattr;
test_listxattr;
@@ -453,14 +455,19 @@ function _init()
DIR=$(pwd);
}
-
+run_lock_tests=1
function parse_cmdline()
{
if [ "x$1" == "x" ] ; then
- echo "Usage: $0 /path/mount"
+ echo "Usage: $0 [--no-locks] /path/mount"
exit 1
fi
+ if [ "$1" == "--no-locks" ] ; then
+ run_lock_tests=0
+ shift
+ fi
+
DIR=$1;
if [ ! -d "$DIR" ] ; then