Something went wrong on our end
-
Nicolas Essing authored
The run_test.sh script explicitly used python2.7, and the shebang of the tests.py script was just python, which is normally also python2, while the script was clearly a python3 script. Also repalced the nonexistend ArgumentError with a ValueError.
Nicolas Essing authoredThe run_test.sh script explicitly used python2.7, and the shebang of the tests.py script was just python, which is normally also python2, while the script was clearly a python3 script. Also repalced the nonexistend ArgumentError with a ValueError.
run_test.sh 668 B
#!/bin/sh
ARCHIVE=loggs
export LD_LIBRARY_PATH=$MKLROOT/lib/intel64:$LD_LIBRARY_PATH
## today's date, hour, minute
day=`date "+%Y%m%d%H%M"`
## remove old soft link
rm -f ./last
## run the test scripts
nohup python3 ./tests.py < /dev/null > ${day}_tests.txt
## clean the working directory
./clearfiles.sh
## make sure that the archive directory for loggs exists
mkdir -p ${ARCHIVE}
## move the last log file there
mv ${day}_tests.txt ${ARCHIVE}
## set a soft link so it is easier to identify the log file of the last test run
ln -s ${ARCHIVE}/${day}_tests.txt ./last
## show the first 5 lines, enough to distinguish between success and failure
head -5 last