diff --git a/tests/e2e/setup.sh b/tests/e2e/setup.sh index e1b18a6d..db225b17 100755 --- a/tests/e2e/setup.sh +++ b/tests/e2e/setup.sh @@ -4,6 +4,8 @@ set -euo pipefail TEST_NAME="setup file" TEST_CONFIG_DIR="./temp-config-dir" +export DOPPLER_PROJECT="" +export DOPPLER_CONFIG="" cleanup() { exit_code=$? @@ -95,12 +97,12 @@ set has_failed "1" spawn $DOPPLER_BINARY setup --config-dir=$TEST_CONFIG_DIR 2>/dev/null -expect "Selected only available project: cli" - -expect "Selected only available config: e2e" - expect { "NAME" { set has_failed "0" } + eof { + # The spawn command has completed, print the output + puts \$expect_out(buffer) + } } if { \$has_failed == "1" } {