mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
Merge branch 'pt/t7800-difftool-test-racefix' into next
Test fixup. * pt/t7800-difftool-test-racefix: t7800: fix racy "difftool --dir-diff syncs worktree" test
This commit is contained in:
@@ -647,21 +647,21 @@ test_expect_success SYMLINKS 'difftool --dir-diff --symlinks without unstaged ch
|
||||
'
|
||||
|
||||
write_script modify-right-file <<\EOF
|
||||
echo "new content" >"$2/file"
|
||||
echo "modified content" >"$2/file"
|
||||
EOF
|
||||
|
||||
run_dir_diff_test 'difftool --dir-diff syncs worktree with unstaged change' '
|
||||
test_when_finished git reset --hard &&
|
||||
echo "orig content" >file &&
|
||||
git difftool -d $symlinks --extcmd "$PWD/modify-right-file" branch &&
|
||||
echo "new content" >expect &&
|
||||
echo "modified content" >expect &&
|
||||
test_cmp expect file
|
||||
'
|
||||
|
||||
run_dir_diff_test 'difftool --dir-diff syncs worktree without unstaged change' '
|
||||
test_when_finished git reset --hard &&
|
||||
git difftool -d $symlinks --extcmd "$PWD/modify-right-file" branch &&
|
||||
echo "new content" >expect &&
|
||||
echo "modified content" >expect &&
|
||||
test_cmp expect file
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user