Skip to content

Commit 6a1c484

Browse files
committed
Fix improperly reported test exit code in github actions
1 parent 024e78d commit 6a1c484

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docker/test.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ npm run lint
1919
npm run format
2020
npm run package
2121

22-
(xvfb-run -a npm run coverage; echo $? > exitcode) | grep -Ev "Failed to connect to the bus|GPU stall due to ReadPixels" && rm -rf "${current_directory}/coverage" && (cp -R ./coverage "${current_directory}" || true)
23-
exit "$(<exitcode)"
22+
xvfb-run -a npm run coverage 2>&1 | grep -Ev "Failed to connect to the bus|GPU stall due to ReadPixels"
23+
exit_code=${PIPESTATUS[0]}
24+
25+
rm -rf "${current_directory}/coverage"
26+
cp -R ./coverage $current_directory || true
27+
28+
exit "${exit_code}"

0 commit comments

Comments
 (0)