diff --git a/test/test-credentials.sh b/test/test-credentials.sh index 6b71bf61..7974a95a 100755 --- a/test/test-credentials.sh +++ b/test/test-credentials.sh @@ -142,10 +142,14 @@ password=path" set +e echo "protocol=http host=credential-test.com -path=some/path" | GIT_TERMINAL_PROMPT=0 git credential fill +path=some/path" | GIT_TERMINAL_PROMPT=0 git credential fill > cred.log if [ $? -eq 0 ] then - exit 1 + expected="protocol=http +host=credential-test.com +path=some/path" + + [ "$expected" = "$(cat cred.log)" ] fi ) end_test