diff --git a/.github/workflows/parallel_tests.yml b/.github/workflows/parallel_tests.yml index 368d605ada2..1c19cad8094 100644 --- a/.github/workflows/parallel_tests.yml +++ b/.github/workflows/parallel_tests.yml @@ -85,27 +85,7 @@ jobs: - test_type: "sym_trace" target: "x86_64" - test_type: "pypanda" - test_script: "dyn_hooks" - - test_type: "pypanda" - test_script: "copy_test" - - test_type: "pypanda" - test_script: "file_fake" - - test_type: "pypanda" - test_script: "file_hook" - - test_type: "pypanda" - test_script: "generic_tests" - - test_type: "pypanda" - test_script: "monitor_cmds" - - test_type: "pypanda" - test_script: "multi_proc_cbs" - - test_type: "pypanda" - test_script: "sleep_in_cb" - - test_type: "pypanda" - test_script: "syscalls" - - test_type: "pypanda" - test_script: "record_no_snap" - - test_type: "pypanda" - test_script: "sig_suppress" + test_script: "all" - test_type: "make_check" test_script: "check-qtest-x86_64" - test_type: "make_check" @@ -168,7 +148,7 @@ jobs: --mount type=bind,source=$(pwd)/ubuntu_1604_x86.qcow,target=/root/.panda/ubuntu_1604_x86.qcow -e PANDA_TEST=yes --cap-add SYS_NICE --rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c - "cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && python3 ${{ matrix.test_script }}.py" + "cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && ./run_all_tests.sh" - name: Run make Tests if: matrix.test_type == 'make_check' diff --git a/panda/python/tests/run_all_tests.sh b/panda/python/tests/run_all_tests.sh new file mode 100644 index 00000000000..38a4b05dd22 --- /dev/null +++ b/panda/python/tests/run_all_tests.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# Iterate over all Python test scripts and execute them +for test_script in /panda/panda/python/tests/*.py; do + echo "Running $test_script..." + python3 "$test_script" + if [ $? -ne 0 ]; then + echo "Test $test_script failed" + exit 1 + fi +done