Skip to content

Commit 6e89162

Browse files
committed
Fix improperly reported test exit code in github actions
1 parent 9962564 commit 6e89162

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
@@ -18,5 +18,10 @@ npm run lint
1818
npm run format
1919
npm run package
2020

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

0 commit comments

Comments
 (0)