Skip to content

Commit 0afeb3f

Browse files
committed
Merge branch 'jk/test-fixes'
Test fixes. * jk/test-fixes: t7800: don't rely on reuse_worktree_file() t4018: drop "debugging" cat from hunk-header tests
2 parents 808dab2 + e4837b4 commit 0afeb3f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

t/t4018-diff-funcname.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ do
106106
result=success
107107
fi
108108
test_expect_$result "hunk header: $i" "
109-
test_when_finished 'cat actual' && # for debugging only
110109
git diff -U1 $i >actual &&
111110
grep '@@ .* @@.*RIGHT' actual
112111
"

t/t7800-difftool.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,14 @@ test_expect_success 'difftool stops on error with --trust-exit-code' '
125125
test_when_finished "rm -f for-diff .git/fail-right-file" &&
126126
test_when_finished "git reset -- for-diff" &&
127127
write_script .git/fail-right-file <<-\EOF &&
128-
echo "$2"
128+
echo failed
129129
exit 1
130130
EOF
131131
>for-diff &&
132132
git add for-diff &&
133-
echo file >expect &&
134133
test_must_fail git difftool -y --trust-exit-code \
135134
--extcmd .git/fail-right-file branch >actual &&
136-
test_cmp expect actual
135+
test_line_count = 1 actual
137136
'
138137

139138
test_expect_success 'difftool honors exit status if command not found' '

0 commit comments

Comments
 (0)