diff --git a/test/integration/test-login.sh b/test/integration/test-login.sh index f9ae944..6104e27 100755 --- a/test/integration/test-login.sh +++ b/test/integration/test-login.sh @@ -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" @@ -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