66
77echo " Client Script"
88
9- # if any command fails, the script should exit
10- set -e
11-
129# enable some more output
1310set -x
1411
@@ -24,19 +21,9 @@ rm -rf /root/pynfs && git clone git://linux-nfs.org/~bfields/pynfs.git
2421cd /root/pynfs && yes | python3 setup.py build > /tmp/output_tempfile.txt
2522echo $?
2623
27- set +e
28-
2924LOG_FILE40=" /tmp/pynfs" $( date +%s) " .log"
3025cd /root/pynfs/nfs4.0
3126./testserver.py ${SERVER} :${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> " ${LOG_FILE40} "
32- # timeout --preserve-status -s SIGKILL 240s ./testserver.py ${SERVER}:${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> "${LOG_FILE40}"
33- # TIMED_OUT=$?
34- # Return code will be 124 if it ends the process by using SIGTERM for not getting any response. 137 when used SIGKILL to kill the process
35- # if [ $TIMED_OUT == 137 ]; then
36- # echo -e "The process timed out after 4 minute!\nLooks like the Server process to see if it has crashed!"
37- # exit 1
38- # fi
39- # cd /root/pynfs/nfs4.0 && ./testserver.py ${SERVER}:${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> "${LOG_FILE40}"
4027RETURN_CODE40=$?
4128
4229echo " pynfs 4.0 test output:"
@@ -45,18 +32,8 @@ cat $LOG_FILE40
4532LOG_FILE41=" /tmp/pynfs" $( date +%s) " .log"
4633cd /root/pynfs/nfs4.1
4734./testserver.py ${SERVER} :${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> " ${LOG_FILE41} "
48- # timeout --preserve-status -s SIGKILL 240s ./testserver.py ${SERVER}:${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> "${LOG_FILE41}"
49- # TIMED_OUT=$?
50- # Return code will be 124 if it ends the process by using SIGTERM for not getting any response. 137 when used SIGKILL to kill the process
51- # if [ $TIMED_OUT == 137 ]; then
52- # echo -e "The process timed out after 4 minute!\nLooks like the Server process to see if it has crashed!"
53- # exit 1
54- # fi
55- # cd /root/pynfs/nfs4.1 && ./testserver.py ${SERVER}:${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> "${LOG_FILE41}"
5635RETURN_CODE41=$?
5736
58- set -e
59-
6037echo " pynfs 4.1 test output:"
6138cat $LOG_FILE41
6239
@@ -76,8 +53,5 @@ if [ $RETURN_CODE40 != 0 ] || [ $RETURN_CODE40 != 0 ]; then
7653 echo " pynfs 4.1 test suite failures:"
7754 echo " --------------------------"
7855 cat $LOG_FILE41 | grep FAILURE
79-
8056 exit 1
8157fi
82-
83- exit 0
0 commit comments