Skip to content

Commit 8045210

Browse files
committed
tests/template: Skip test cases broken without tar
Missed these in the previous commit. Validated on a regular MSYS2 installation with and without `tar` installed.
1 parent 8d1fa10 commit 8045210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/template.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ run_with_download_program() {
311311
local repo='bogus-repo-that-does-not-exist'
312312

313313
skip_if_none_present_on_system 'curl' 'fetch' 'wget'
314-
skip_if_system_missing 'git'
314+
skip_if_system_missing 'git' 'tar'
315315
GO_SCRIPT_BASH_DOWNLOAD_URL="$url" GO_SCRIPT_BASH_REPO_URL="$repo" \
316316
run "$TEST_GO_ROOTDIR/go-template"
317317
assert_failure
@@ -328,7 +328,7 @@ run_with_download_program() {
328328
local branch='vnonexistent'
329329

330330
skip_if_none_present_on_system 'curl' 'fetch' 'wget'
331-
skip_if_system_missing 'git'
331+
skip_if_system_missing 'git' 'tar'
332332
GO_SCRIPT_BASH_VERSION="$branch" run "$TEST_GO_ROOTDIR/go-template"
333333
assert_failure
334334
assert_output_matches 'Using git clone as fallback'

0 commit comments

Comments
 (0)