зеркало из https://github.com/microsoft/git.git
Merge branch 'as/tests-cleanup'
Micro clean-up of a couple of test scripts. * as/tests-cleanup: t2200,t9832: avoid using 'git' upstream in a pipe
This commit is contained in:
Коммит
b3ae46a936
|
@ -179,7 +179,8 @@ test_expect_success 'add -u resolves unmerged paths' '
|
|||
|
||||
test_expect_success '"add -u non-existent" should fail' '
|
||||
test_must_fail git add -u non-existent &&
|
||||
! (git ls-files | grep "non-existent")
|
||||
git ls-files >actual &&
|
||||
! grep "non-existent" actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
|
|
@ -68,7 +68,8 @@ EOF
|
|||
cd "$git" &&
|
||||
change=$(last_shelved_change) &&
|
||||
git p4 unshelve $change &&
|
||||
git show refs/remotes/p4-unshelved/$change | grep -q "Further description" &&
|
||||
git show refs/remotes/p4-unshelved/$change >actual &&
|
||||
grep -q "Further description" actual &&
|
||||
git cherry-pick refs/remotes/p4-unshelved/$change &&
|
||||
test_path_is_file file2 &&
|
||||
test_cmp file1 "$cli"/file1 &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче