2024-10-22 13:29:07 -04:00
|
|
|
unset workdir
|
2025-07-15 18:19:08 -07:00
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
2024-10-22 13:29:07 -04:00
|
|
|
. "$DIR/prelude.sh"
|
|
|
|
|
|
|
|
|
|
set -o verbose
|
|
|
|
|
|
|
|
|
|
cd src
|
|
|
|
|
|
|
|
|
|
# Get the name of the test to be included in the report
|
|
|
|
|
report_test_name="$1"
|
|
|
|
|
# Shift the args so "$@" will unwind only the args to be passed to the python process
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
|
|
activate_venv
|
|
|
|
|
echo $python $@
|
2025-07-15 18:19:08 -07:00
|
|
|
echo $python $@ >python_report.log
|
|
|
|
|
$python "$@" &>>python_report.log
|
2024-10-22 13:29:07 -04:00
|
|
|
exit_code=$?
|
2025-07-15 18:19:08 -07:00
|
|
|
echo "Finished with exit code: $exit_code" >>python_report.log
|
2024-10-22 13:29:07 -04:00
|
|
|
|
|
|
|
|
$python ./buildscripts/simple_report.py --test-name "${report_test_name}" --log-file python_report.log --exit-code $exit_code
|
|
|
|
|
exit $exit_code
|