From 1fa22cceeff3d0744bdfc4b9e5ec89e2cd8c3e7f Mon Sep 17 00:00:00 2001 From: Chase King Date: Tue, 11 Mar 2025 10:23:49 -0400 Subject: [PATCH] Fixed calculation of number of tests --- azure-pipelines-automated-testing.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-automated-testing.yml b/azure-pipelines-automated-testing.yml index 2bbd6868..5c0725aa 100644 --- a/azure-pipelines-automated-testing.yml +++ b/azure-pipelines-automated-testing.yml @@ -89,9 +89,11 @@ stages: -e CI=true \ -e NODE_ENV=$(NODE_ENV) \ $(dockerImageName):$(imageTag) \ - bash -c "num_tests=$(npx playwright test --list --grep \"@$jira_card_number\") + bash -c "num_tests=$(npx playwright test playwright-tests --list --grep \"@$jira_card_number\") + echo $num_tests num_tests=${num_tests#*Total: } num_tests=${num_tests%% test*} + echo \"Extracted number of tests: $num_tests\" if [[ $num_tests -lt $(shardNumber) ]]; then echo 'There are fewer tests than shards. Skipping this shard.' else