Skip to content

Commit e2112d8

Browse files
committed
Allow to pass custom arguments to prove
For example: auto-build-and-test-dist --state save auto-build-and-test-dist --jobs $(nproc --all) auto-build-and-test-dist -vm Especially useful is `--state save` which allows to expose `.prove` as job's artifact for download and use to fix failed tests on localhost
1 parent ddea2ed commit e2112d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/auto-build-and-test-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ build-dist
1010
cd "$BUILD_DIR"
1111

1212
cpan-install-dist-deps --with-develop
13-
test-dist
13+
test-dist "$@"

bin/test-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
IFS=' ' read -r -a ALL_TEST_DIRS <<<"$TEST_DIRS"
3030

31-
prove -lr --jobs 2 "${ALL_TEST_DIRS[@]}"
31+
prove -lr --jobs 2 "$@" "${ALL_TEST_DIRS[@]}"
3232

3333
if [[ -n "${CODECOV_ENABLE}" ]]; then
3434
cover -report codecov

0 commit comments

Comments
 (0)