From 61d4db4ac5ec11351775b49bbfd2f4904eb70867 Mon Sep 17 00:00:00 2001 From: Sanyi Date: Fri, 26 Jul 2024 08:30:56 +0200 Subject: [PATCH] EMA-150 auto test memory optimizing --- dev/testv2/tools/scripts/run-e2e.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/testv2/tools/scripts/run-e2e.sh b/dev/testv2/tools/scripts/run-e2e.sh index 77d888a..ea67e5e 100644 --- a/dev/testv2/tools/scripts/run-e2e.sh +++ b/dev/testv2/tools/scripts/run-e2e.sh @@ -25,7 +25,8 @@ docker compose -p mage_e2e_"$project_version" -f $composefile up --build -d echo "\n|--- Waiting for containers to initialize" sh ./wait.sh e2e >>/dev/null 2>&1 echo "\n|--- Running frontend tests" -docker compose -p mage_e2e_"$project_version" -f $composefile run --rm node sh -c "npm run e2e" --exit-code-from node --abort-on-container-exit node +free +docker compose -p mage_e2e_"$project_version" -f $composefile run --rm node sh -c "free && npm run e2e" --exit-code-from node --abort-on-container-exit node exitcode=$? echo "\n\n|--- All tests passed" free