diff --git a/.github/workflows/build-process.yml b/.github/workflows/build-process.yml index cfc8e4216..9115fd6a7 100644 --- a/.github/workflows/build-process.yml +++ b/.github/workflows/build-process.yml @@ -82,6 +82,8 @@ jobs: - name: Test shell: bash + env: + CI_TESTING: y run: tests/run_tests.sh - name: Create QB64-PE Artifact diff --git a/tests/compile_tests.sh b/tests/compile_tests.sh index 79783667b..dc2670a27 100755 --- a/tests/compile_tests.sh +++ b/tests/compile_tests.sh @@ -87,6 +87,13 @@ do [ "$testResult" == "$expectedResult" ] assert_success_named "result" "Result is wrong:" show_incorrect_result "$expectedResult" "$testResult" + + # Restart pulseaudio between each test to make sound tests work on Linux + if [ "$CI_TESTING" == "y" ] && command -v pulseaudio > /dev/null + then + pulseaudio -k + pulseaudio -D + fi else ! (exit $ERR) assert_success_named "Compile" "Compilation Success, was expecting error:" show_failure "$category" "$testName"