Skip to content

Commit 0f974d1

Browse files
committed
Skip gpg "opens keychain" test in github actions
1 parent 43b61e3 commit 0f974d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/gpg.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ EOF
367367
################################################################################
368368

369369
@test "opens keychain" {
370-
_skip_when_not_macos
370+
_skip_if_github_action
371371
run pw open
372372
assert_success
373373
refute_output

test/test-helper.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,7 @@ _skip_manual_test() {
165165
skip "Requires user input. Use test/run -m to also run manual tests."
166166
fi
167167
}
168+
169+
_skip_if_github_action() {
170+
[[ "${GITHUB_ACTIONS}" != "true" ]] || skip "$@"
171+
}

0 commit comments

Comments
 (0)