test the output if git-credential doesnt fail

This commit is contained in:
Rick Olson 2015-08-28 14:10:55 -06:00
parent e406d70c60
commit a3a03075d8

@ -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