diff options
Diffstat (limited to 'agl-test')
-rwxr-xr-x | agl-test | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -1,5 +1,22 @@ #!/bin/sh +# set time stamp +current_time=`date +%Y_%m_%d_%H_%M_%S` +export TIME_STAMP=${current_time} + +# init file of test list +test_list_file=test_list_${current_time}.json +mkdir -p /var/run/agl-test/logs/tmp-log/ +echo "{ }" > /var/run/agl-test/logs/tmp-log/${test_list_file} + +# init the dir of log-to-report +if [[ -e "/var/run/agl-test/logs/log-to-report/summary-report.html" ]] +then + rm /var/run/agl-test/logs/log-to-report/* +else + mkdir -p /var/run/agl-test/logs/log-to-report/ +fi + cd /usr/AGL/agl-test/ # default stress level is low @@ -13,7 +30,9 @@ echo "STRESS_LEVEL: $STRESS_LEVEL" moption="-m " if [[ $* =~ ${moption} ]] then - exec pytest "$@" + pytest "$@" else - exec pytest "$@" -m "not dangerous" + pytest "$@" -m "not dangerous" fi + +python3 -c "import plugins.agl_test_report as report; report.generate_total_summary_files('${current_time}')" |