test: ignore NSInvalidArgumentException exception in client cert test
works around a known issue with git on mac, compiled against the wrong openssl or curl libs
This commit is contained in:
parent
868fc7bac9
commit
9a00eb3a68
@ -136,17 +136,19 @@ begin_test "cloneSSL"
|
||||
# Now check SSL clone with standard 'git clone' and smudge download
|
||||
rm -rf "$reponame"
|
||||
git clone "$SSLGITSERVER/$reponame"
|
||||
|
||||
)
|
||||
end_test
|
||||
|
||||
begin_test "clone ClientCert"
|
||||
(
|
||||
|
||||
set -e
|
||||
reponame="test-cloneClientCert"
|
||||
setup_remote_repo "$reponame"
|
||||
clone_repo_clientcert "$reponame" "$reponame"
|
||||
if [ $(grep -c "client-cert-mac-openssl" clone_client_cert.log) -gt 0 ]; then
|
||||
echo "Skipping due to SSL client cert bug in Git"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git lfs track "*.dat" 2>&1 | tee track.log
|
||||
grep "Tracking \*.dat" track.log
|
||||
|
@ -283,14 +283,26 @@ clone_repo_clientcert() {
|
||||
local reponame="$1"
|
||||
local dir="$2"
|
||||
echo "clone $CLIENTCERTGITSERVER/$reponame to $dir"
|
||||
set +e
|
||||
out=$(git clone "$CLIENTCERTGITSERVER/$reponame" "$dir" 2>&1)
|
||||
cd "$dir"
|
||||
res="${PIPESTATUS[0]}"
|
||||
set -e
|
||||
|
||||
git config credential.helper lfstest
|
||||
#todo setup client cert...
|
||||
if [ "0" -eq "$res" ]; then
|
||||
cd "$dir"
|
||||
echo "$out" > clone_client_cert.log
|
||||
|
||||
git config credential.helper lfstest
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "$out" > clone_client_cert.log
|
||||
echo "$out"
|
||||
if [ $(grep -c "NSInvalidArgumentException" clone_client_cert.log) -gt 0 ]; then
|
||||
echo "client-cert-mac-openssl" > clone_client_cert.log
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
# setup_remote_repo_with_file creates a remote repo, clones it locally, commits
|
||||
|
Loading…
Reference in New Issue
Block a user