Skip to content

Commit f61636b

Browse files
committed
test: allow tests to be run multiple times
1 parent cc71240 commit f61636b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

justfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RELEASE_VERSION := env_var_or_default("RELEASE_VERSION", `date +'%Y%m%d.%H%M'`)
1313

1414
# Test Variables
1515
TEST_IMAGE := env_var_or_default("TEST_IMAGE", "docker:27-dind")
16+
TEST_ITERATIONS := env_var_or_default("TEST_ITERATIONS", "1")
1617

1718

1819
# Initialize a dotenv file for usage with a local debugger
@@ -90,8 +91,10 @@ build-test-bundles:
9091
just build "docker,dest=./tests/tedge-container-bundle_99.99.2.tar.gz" 99.99.2
9192

9293
# Run tests
93-
test *ARGS='':
94-
./.venv/bin/python3 -m robot.run --listener RetryFailed --outputdir output {{ARGS}} tests
94+
[positional-arguments]
95+
test *args="":
96+
./.venv/bin/python3 -m robot.run --listener RetryFailed --outputdir output "$@" $(yes tests | head -{{TEST_ITERATIONS}} | tr '\n' ' ')
97+
9598

9699
# Run self-update tests
97100
test-self-update *ARGS='':

0 commit comments

Comments
 (0)