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 902b72b041
commit 0dc36897ec
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