Commit a96d3421 authored by Matthieu Cattin's avatar Matthieu Cattin

Add test series retry and make prompts more clear.

parent ce74dfb8
...@@ -12,7 +12,7 @@ sudo rm -fr $LOGDIR/pts* ...@@ -12,7 +12,7 @@ sudo rm -fr $LOGDIR/pts*
serial=$1 serial=$1
if [ x$1 = x"" ]; then if [ x$1 = x"" ]; then
echo -n "Please, input SERIAL number: " echo -n "Please scan CERN bar-code serial number, then press [ENTER]: "
read serial read serial
fi fi
...@@ -22,7 +22,7 @@ fi ...@@ -22,7 +22,7 @@ fi
extra_serial=$2 extra_serial=$2
if [ x$2 = x"" ]; then if [ x$2 = x"" ]; then
echo -n "Please, input extra SERIAL number: " echo -n "If needed input extra serial number and press [ENTER] OR just press [ENTER]: "
read extra_serial read extra_serial
fi fi
...@@ -30,11 +30,30 @@ if [ x$extra_serial = x"" ]; then ...@@ -30,11 +30,30 @@ if [ x$extra_serial = x"" ]; then
extra_serial=0000 extra_serial=0000
fi fi
nb_test_limit=2
echo -n "--------------------------------------------------------------\n" nb_test=1
sudo ./pts.py -b FmcAdc100M14b4cha -s $serial -e $extra_serial -t./test/fmcadc100m14b4cha/python -l $LOGDIR 00 01 02 03 04 05 06 07 08 09 while [ "$nb_test" -le "$nb_test_limit" ]
do
echo "--------------------------------------------------------------"
echo -n "Press enter to exit... " echo "Test series run $nb_test out of $nb_test_limit"
read tmp
sudo ./pts.py -b FmcAdc100M14b4cha -s $serial -e $extra_serial -t./test/fmcadc100m14b4cha/python -l $LOGDIR 00 01 02 03 04 05 06 07 08 09
if [ "$nb_test" != "$nb_test_limit" ]
then
echo " "
echo -n "Do you want to run the test series again [y,n]? "
read reply
if [ "$reply" != "y" ]
then
break
fi
fi
let "nb_test+=1"
done
echo "--------------------------------------------------------------"
echo " "
echo -n "End of the test, press [ENTER] to exit... "
read tmp
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment