[Ocfs2-test-devel] [PATCH 45/59] flock-test: disable posix lock test

Junxiao Bi junxiao.bi at oracle.com
Sun Sep 13 19:44:31 PDT 2015


Disable posix lock test for o2cb stack as it doesn't support.

Signed-off-by: Junxiao Bi <junxiao.bi at oracle.com>
---
 programs/python_common/multiple_run.sh |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/programs/python_common/multiple_run.sh b/programs/python_common/multiple_run.sh
index 8483769..101dcb0 100755
--- a/programs/python_common/multiple_run.sh
+++ b/programs/python_common/multiple_run.sh
@@ -450,12 +450,16 @@ run_flock_unit_test()
 	local workplace=${MOUNT_POINT}/flock_unit_test
 	local testfile1=${workplace}/flock_unit_test_file1
 	local testfile2=${workplace}/flock_unit_test_file2
+	local posix_lock_supported=0
 
 	run_common_testcase "flock_unit" "sparse,unwritten,inline-data" \
 "${TOUCH_BIN} ${testfile1} && ${TOUCH_BIN} ${testfile2} && ${BINDIR}/run_flock_unit_test.py \
--l ${fcntl_logfile} -n ${NODE_LIST} -t fcntl -e ${testfile1} -f ${testfile2} \
-&& ${BINDIR}/run_flock_unit_test.py -l ${flock_logfile} -i ${INTERFACE} -n ${NODE_LIST} -t \
-flock -e ${testfile1} -f ${testfile2}"
+-l ${flock_logfile} -i ${INTERFACE} -n ${NODE_LIST} -t flock -e ${testfile1} -f ${testfile2}"
+
+	if [ $posix_lock_supported -eq 1 ]; then
+		${BINDIR}/run_flock_unit_test.py -l ${fcntl_logfile} -n ${NODE_LIST} -t fcntl \
+		-e ${testfile1} -f ${testfile2}
+	fi
 }
 
 f_cleanup()
-- 
1.7.9.5




More information about the Ocfs2-test-devel mailing list