From 6c9fab1c6c6dbd3d00d66bf02e1ef3f89065af55 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 18 Oct 2023 22:46:04 -0700 Subject: [PATCH] wip: debug tests --- tests/e2e/setup.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/e2e/setup.sh b/tests/e2e/setup.sh index e1b18a6d..c9df25c3 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=$? @@ -93,14 +95,14 @@ set timeout 2 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" +spawn $DOPPLER_BINARY setup --config-dir=$TEST_CONFIG_DIR expect { "NAME" { set has_failed "0" } + eof { + # The spawn command has completed, print the output + puts \$expect_out(buffer) + } } if { \$has_failed == "1" } {