Skip to content

Commit

Permalink
wip: debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello authored and nmanoogian committed Feb 14, 2024
1 parent d1e32b3 commit c89979d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/e2e/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
Expand Down Expand Up @@ -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" } {
Expand Down

0 comments on commit c89979d

Please sign in to comment.