Skip to content

Commit

Permalink
fix redirection stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
💥Hedi Ghediri committed Jul 31, 2024
1 parent a7910bd commit 06f02f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test-login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ cp -R $SCRIPT_DIR/../packages-src/login $CL_HOME/dropins


###
# login without specifying user
# login without -u
###
RESULT=$($CL_PATH login -p test-password <<< '\n')
RESULT=$(echo | $CL_PATH login -p test-password) # The echo simulates an empty input from the user
echo -e "Actual:\n$RESULT"
EXPECTED_USERNAME_PROMPT="Please enter your user name [$USER]: "
TEST_DESCRIPTION="should prompt '$EXPECTED_USERNAME_PROMPT'"
Expand Down

0 comments on commit 06f02f4

Please sign in to comment.