tests: skip tests that require tty for github actions

This commit is contained in:
Jose Diaz-Gonzalez
2021-04-25 00:35:42 -04:00
parent f7a2e6c866
commit b58b3ebce7
2 changed files with 6 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ teardown() {
}
@test "($PLUGIN_COMMAND_PREFIX:import) error when data is not provided" {
if [[ -n "$GITHUB_WORKFLOW" ]]; then
skip "No tty is available on Github Actions"
fi
run dokku "$PLUGIN_COMMAND_PREFIX:import" l
assert_contains "${lines[*]}" "No data provided on stdin"
assert_failure