Skip to content

Commit da856ef

Browse files
committed
Merge branch 'as/tests-cleanup' into seen
* as/tests-cleanup: t2200,t9832: avoid using 'git' upstream in a pipe
2 parents c433632 + a90765b commit da856ef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

t/t2200-add-update.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ test_expect_success 'add -u resolves unmerged paths' '
179179

180180
test_expect_success '"add -u non-existent" should fail' '
181181
test_must_fail git add -u non-existent &&
182-
! (git ls-files | grep "non-existent")
182+
git ls-files >actual &&
183+
! grep "non-existent" actual
183184
'
184185

185186
test_done

t/t9832-unshelve.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ EOF
6868
cd "$git" &&
6969
change=$(last_shelved_change) &&
7070
git p4 unshelve $change &&
71-
git show refs/remotes/p4-unshelved/$change | grep -q "Further description" &&
71+
git show refs/remotes/p4-unshelved/$change >actual &&
72+
grep -q "Further description" actual &&
7273
git cherry-pick refs/remotes/p4-unshelved/$change &&
7374
test_path_is_file file2 &&
7475
test_cmp file1 "$cli"/file1 &&

0 commit comments

Comments
 (0)