Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 82c252e

Browse files
committed
CORTX-33129: Enable 26motr-user-kernel-tests ST which is disabled for libfabric
Analysis: ST 26motr-user-kernel-tests are dependent on the m0tr(mount_m0t1fs) and motr_st_kmod.ko modules. Due to that reason it was disabled. We have to remove kernel module dependency. Fix: Following fixes are added to enable 26motr-user-kernel-tests ST for libfabric * First issue is resolved by not sending HA events to clients, and which will get these states during startup from dummy HA m0d. * Removed m0tr.ko dependency. * Removed motr_st_kmod.ko module dependency tests. Signed-off-by: Venkateswarlu Payidimarry <[email protected]>
1 parent 7068779 commit 82c252e

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

motr/st/utils/motr_client_st.sh

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ m0t1fs_st_dir=$motr_st_util_dir/../../../m0t1fs/linux_kernel/st
4141
# Set the mode of Motr [user|kernel]
4242
umod=1
4343

44+
export MOTR_CLIENT_ONLY=1
45+
4446
motr_st_run_tests()
4547
{
4648
# Start the tests
@@ -73,15 +75,12 @@ motr_st_dgmode()
7375
return 1
7476
fi
7577

76-
#local mountopt="oostore,verify"
77-
mount_m0t1fs $MOTR_M0T1FS_MOUNT_DIR $mountopt || return 1
7878
# Inject failure to device 1
7979
fail_device=1
8080
motr_st_set_failed_dev $fail_device || {
8181
return 1
8282
}
8383

84-
unmount_and_clean &>> $MOTR_TEST_LOGFILE
8584
# Run tests
8685
motr_st_run_tests
8786
rc=$?
@@ -142,6 +141,17 @@ main()
142141
echo "Motr system tests start:"
143142
echo "Test log will be stored in $MOTR_TEST_LOGFILE."
144143

144+
# Create log file
145+
motr_test_dir="$(dirname "${MOTR_TEST_LOGFILE}")"
146+
if [ ! -d $motr_test_dir ]
147+
then
148+
mkdir -p $motr_test_dir
149+
elif [ -f $MOTR_TEST_LOGFILE ]
150+
then
151+
rm -f $MOTR_TEST_LOGFILE
152+
fi
153+
touch $MOTR_TEST_LOGFILE
154+
145155
set -o pipefail
146156

147157
umod=1
@@ -155,17 +165,6 @@ main()
155165
rc=$?
156166
echo "Done"
157167

158-
umod=0
159-
echo -n "Start Motr Tests [Kernel Mode] ... "
160-
motr_st $umod -2>&1 | tee -a $MOTR_TEST_LOGFILE
161-
rc=$?
162-
echo "Done"
163-
164-
echo -n "Start Motr Degraded mode Tests [Kernel Mode] ... "
165-
motr_st_dgmode $umod 2>&1 | tee -a $MOTR_TEST_LOGFILE
166-
rc=$?
167-
echo "Done"
168-
169168
echo "Test log available at $MOTR_TEST_LOGFILE."
170169

171170
return $rc

utils/functions

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
21fsync-single-node
2828
22sns-repair-ios-fail
2929
23sns-abort-quiesce
30-
26motr-user-kernel-tests
3130
28sys-kvs
3231
28sys-kvs-kernel
3332
34sns-repair-1n-1f

0 commit comments

Comments
 (0)