Skip to content

Commit 7a301f2

Browse files
authored
Merge pull request #7 from Testlio/feature/remove-colons/green-725
Fix quotes handling in testArgs in create run script
2 parents db2f4fa + 250c938 commit 7a301f2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.circleci/test-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ workflows:
3030
filters: *filters
3131
- testlio/schedule-run:
3232
dry-run: true
33+
test-args: "--spec tests/login-test.ts"
3334
filters: *filters
3435
requires:
3536
- copy-sample-configs

sample-config/test-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"browserNames": ["chrome"],
1515
"platformNames": ["windows"]
1616
},
17-
"count": 2,
17+
"select": 2,
1818
"testPackageURI": "path/to/the/test/scripts"
1919
}

src/scripts/create-run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33
set -o nounset
44
set -o errexit
55
set -o xtrace
6+
set -o pipefail
67

78
[ ! -f "${PROJECT_CONFIG_PATH}" ] && echo "Cannot find project config in ${PROJECT_CONFIG_PATH}." && exit
89
[ ! -f "${TEST_CONFIG_PATH}" ] && echo "Cannot find test config in ${TEST_CONFIG_PATH}." && exit
@@ -11,6 +12,6 @@ export RUN_API_TOKEN=${!RUN_API_TOKEN_ENV_NAME}
1112

1213
OPTIONAL_ARGS=()
1314
[ "$DRY_RUN" -eq 1 ] && OPTIONAL_ARGS+=("--dryRun")
14-
[ -n "$TEST_ARGS" ] && OPTIONAL_ARGS+=("--testArgs='${TEST_ARGS}'")
15+
[ -n "$TEST_ARGS" ] && OPTIONAL_ARGS+=("--testArgs=\"${TEST_ARGS}\"")
1516

1617
testlio create-run --projectConfig "${PROJECT_CONFIG_PATH}" --testConfig "${TEST_CONFIG_PATH}" "${OPTIONAL_ARGS[@]}"

0 commit comments

Comments
 (0)