[Git][ghc/ghc][wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL] testsuite: Stabilize T24602
Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL at Glasgow Haskell Compiler / GHC Commits: dfe9142c by Sven Tennie at 2025-12-31T13:51:19+01:00 testsuite: Stabilize T24602 I don't get *why*, however the final js file seems to be written asynchronuously. So, we wait until it's around. - - - - - 1 changed file: - testsuite/tests/javascript/closure/Makefile Changes: ===================================== testsuite/tests/javascript/closure/Makefile ===================================== @@ -13,4 +13,10 @@ T24602: --emit_use_strict \ --js_output_file ./T24602.jsexe/all.min.js \ ./T24602.jsexe/all.js ./T24602.jsexe/all.externs.js + # For odd reasons, the final js file might not be finally written at this + # line. This happens when tests run concurrently (e.g. on CI). + while [ ! -f "./T24602.jsexe/all.min.js" ]; do \ + sync \ + sleep 1; \ + done node ./T24602.jsexe/all.min.js View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dfe9142cfbd96e7a8b4da730cfa5c361... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dfe9142cfbd96e7a8b4da730cfa5c361... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)