fix tests

This commit is contained in:
Chuanying Du 2019-12-18 17:57:28 -08:00
parent d58a241648
commit 66244108ed
2 changed files with 2 additions and 4 deletions

View File

@ -693,7 +693,7 @@ func runCommandWithStdin(ctx context.Context, cwd, stdin, command string, args .
}
func setupGitAuth(ctx context.Context, username, password, gitURL string) error {
log.V(1).Info("setting up git credential cache")
log.V(1).Info("setting up git credential store")
_, err := runCommand(ctx, "", *flGitCmd, "config", "--global", "credential.helper", "store")
if err != nil {

View File

@ -643,7 +643,7 @@ GIT_SYNC \
--rev=HEAD \
--root="$ROOT" \
--dest="link" \
> "$DIR"/log."$TESTCASE" 2>&1
> "$DIR"/log."$TESTCASE" 2>&1 || true
# check for failure
assert_file_absent "$ROOT"/link/file
# run with askpass_git with correct password
@ -664,8 +664,6 @@ assert_link_exists "$ROOT"/link
assert_file_exists "$ROOT"/link/file
assert_file_eq "$ROOT"/link/file "$TESTCASE 1"
# Wrap up
remove_sync_container
wait
pass
##############################################