mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
Merge branch 'jk/maint-do-not-feed-stdin-to-tests'
* jk/maint-do-not-feed-stdin-to-tests: test-lib: redirect stdin of tests
This commit is contained in:
commit
52b9d2cf7f
1 changed files with 2 additions and 1 deletions
|
@ -192,6 +192,7 @@ then
|
|||
fi
|
||||
|
||||
exec 5>&1
|
||||
exec 6<&0
|
||||
if test "$verbose" = "t"
|
||||
then
|
||||
exec 4>&2 3>&1
|
||||
|
@ -475,7 +476,7 @@ test_debug () {
|
|||
test_eval_ () {
|
||||
# This is a separate function because some tests use
|
||||
# "return" to end a test_expect_success block early.
|
||||
eval >&3 2>&4 "$*"
|
||||
eval </dev/null >&3 2>&4 "$*"
|
||||
}
|
||||
|
||||
test_run_ () {
|
||||
|
|
Loading…
Reference in a new issue