From b58b3ebce7797f8a6b192647d6739564f03c030f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 25 Apr 2021 00:35:42 -0400 Subject: [PATCH] tests: skip tests that require tty for github actions --- tests/service_export.bats | 3 +++ tests/service_import.bats | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/service_export.bats b/tests/service_export.bats index e381525..4d70d6e 100755 --- a/tests/service_export.bats +++ b/tests/service_export.bats @@ -20,6 +20,9 @@ teardown() { } @test "($PLUGIN_COMMAND_PREFIX:export) success with SSH_TTY" { + if [[ -n "$GITHUB_WORKFLOW" ]]; then + skip "No tty is available on Github Actions" + fi export SSH_TTY=`tty` run dokku "$PLUGIN_COMMAND_PREFIX:export" l echo "output: $output" diff --git a/tests/service_import.bats b/tests/service_import.bats index 3b2e9df..a24a8ea 100755 --- a/tests/service_import.bats +++ b/tests/service_import.bats @@ -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