Skip to content

Commit

Permalink
debug windows env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
💥Hedi Ghediri committed Jul 31, 2024
1 parent dd888a3 commit c4e0298
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/integration/test-login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cp -R $SCRIPT_DIR/../packages-src/login $CL_HOME/dropins
###
RESULT=$(echo | $CL_PATH login -p test-password) # The echo simulates an empty input from the user
echo -e "Actual:\n$RESULT"
printenv # debug
EXPECTED_USERNAME_PROMPT="Please enter your user name [$USER]: "
TEST_DESCRIPTION="should prompt '$EXPECTED_USERNAME_PROMPT'"
if ! grep -qF "$EXPECTED_USERNAME_PROMPT" <(echo "$RESULT"); then
Expand All @@ -29,12 +30,7 @@ fi

RESULT=$($CL_PATH print-credentials)
echo -e "Actual:\n$RESULT"
set -x
echo "USERNAME => $USERNAME"
echo "USER => $USER"
printenv # debug
EXPECTED_USERNAME="CL_USERNAME: $USER"
set +xs
TEST_DESCRIPTION="should have username $USER"
if ! grep -qF "$EXPECTED_USERNAME" <(echo "$RESULT"); then
echo "KO - $TEST_DESCRIPTION"
Expand Down

0 comments on commit c4e0298

Please sign in to comment.