From ac84acff0705b2692122778cfe0150db6c42ea18 Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Tue, 14 May 2024 19:47:44 -0500 Subject: [PATCH] Script fixes --- .github/workflows/test.yml | 2 +- runTests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca0501d..1e43896 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,4 +43,4 @@ jobs: - name: Compile World Host run: ./gradlew :${{ matrix.subproject }}:classes - name: Run tests - run: xvfb-run -a -s "-screen 0 1920x1080x24" ./runTests.sh + run: xvfb-run -a -s "-screen 0 1920x1080x24" ./runTests.sh ${{ matrix.subproject }} diff --git a/runTests.sh b/runTests.sh index ce4bc93..376a937 100755 --- a/runTests.sh +++ b/runTests.sh @@ -4,7 +4,7 @@ $host_pid = $! $joiner_pid = $! wait $host_pid $code = $? -if [ $host_pid -ne 0 ]; then +if [ "$code" -ne 0 ]; then exit $code fi exit $(wait $joiner_pid)