diff --git a/codebuild_specs/run_e2e_tests_windows.yml b/codebuild_specs/run_e2e_tests_windows.yml index 31bb22a9919..9930321226b 100644 --- a/codebuild_specs/run_e2e_tests_windows.yml +++ b/codebuild_specs/run_e2e_tests_windows.yml @@ -2,7 +2,6 @@ version: 0.2 env: shell: powershell.exe variables: - CLI_REGION: us-east-1 TEST_SUITE: src/__tests__/auth_2a.test.ts|src/__tests__/auth_2b.test.ts|src/__tests__/auth_2d.test.ts|src/__tests__/auth_2f.test.ts CI: true CIRCLECI: true diff --git a/scripts/select-region-for-e2e-test.ts b/scripts/select-region-for-e2e-test.ts index ce78757fd8f..2eb541992b6 100644 --- a/scripts/select-region-for-e2e-test.ts +++ b/scripts/select-region-for-e2e-test.ts @@ -1,5 +1,6 @@ import { AWS_REGIONS_TO_RUN_TESTS } from './cci-utils'; import * as fs from 'fs-extra'; +import path from 'path'; /** * This script prints region assignment for an e2e test job. @@ -20,7 +21,7 @@ if (!selectedRegion) { } // Offset should be changed if we want re-shuffle regions. const offset = 0; - const waitForIdsFilePath = './codebuild_specs/wait_for_ids.json'; + const waitForIdsFilePath = path.join('.', 'codebuild_specs', 'wait_for_ids.json'); const jobIds = JSON.parse(fs.readFileSync(waitForIdsFilePath, 'utf-8')) as Array; let jobPosition = jobIds.indexOf(jobId); if (jobPosition < 0) {