Skip to content

Commit 360a326

Browse files
Benabikgitster
authored andcommitted
t5570: Update for clone-progress-to-stderr branch
git clone now reports its progress to standard error, which throws off t5570. Using test_i18ngrep instead of test_cmp allows the test to be more flexible by only looking for the expected error and ignoring any other output from the program. Signed-off-by: Brian Gernhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c4125fc commit 360a326

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/t5570-git-daemon.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ test_remote_error()
122122
fi
123123

124124
test_must_fail git "$cmd" "$GIT_DAEMON_URL/$repo" "$@" 2>output &&
125-
echo "fatal: remote error: $msg: /$repo" >expect &&
126-
test_cmp expect output
125+
test_i18ngrep "fatal: remote error: $msg: /$repo" output &&
127126
ret=$?
128127
chmod +x "$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git"
129128
(exit $ret)

0 commit comments

Comments
 (0)