Skip to content

Commit

Permalink
fix broken test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
💥Hedi Ghediri committed Jul 31, 2024
1 parent c4e0298 commit 5499b6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/test-login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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]: "
EXPECTED_USERNAME_PROMPT="Please enter your user name [$(whoami)]: "
TEST_DESCRIPTION="should prompt '$EXPECTED_USERNAME_PROMPT'"
if ! grep -qF "$EXPECTED_USERNAME_PROMPT" <(echo "$RESULT"); then
echo "KO - $TEST_DESCRIPTION"
Expand All @@ -30,8 +30,8 @@ fi

RESULT=$($CL_PATH print-credentials)
echo -e "Actual:\n$RESULT"
EXPECTED_USERNAME="CL_USERNAME: $USER"
TEST_DESCRIPTION="should have username $USER"
EXPECTED_USERNAME="CL_USERNAME: $(whoami)"
TEST_DESCRIPTION="should have username $(whoami)"
if ! grep -qF "$EXPECTED_USERNAME" <(echo "$RESULT"); then
echo "KO - $TEST_DESCRIPTION"
exit 1
Expand Down

0 comments on commit 5499b6e

Please sign in to comment.