test the output if git-credential doesnt fail
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user