File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,12 @@ test_expect_success 'ls-files -c' '
45
45
for f in ../y*
46
46
do
47
47
echo "error: pathspec $sq$f$sq did not match any file(s) known to git."
48
- done >expect &&
49
- echo "Did you forget to ${sq}git add${sq}?" >>expect &&
50
- ls ../x* >>expect &&
51
- test_must_fail git ls-files -c --error-unmatch ../[xy]* >actual 2>&1 &&
52
- test_cmp expect actual
48
+ done >expect.err &&
49
+ echo "Did you forget to ${sq}git add${sq}?" >>expect.err &&
50
+ ls ../x* >expect.out &&
51
+ test_must_fail git ls-files -c --error-unmatch ../[xy]* >actual.out 2>actual.err &&
52
+ test_cmp expect.out actual.out &&
53
+ test_cmp expect.err actual.err
53
54
)
54
55
'
55
56
@@ -59,11 +60,12 @@ test_expect_success 'ls-files -o' '
59
60
for f in ../x*
60
61
do
61
62
echo "error: pathspec $sq$f$sq did not match any file(s) known to git."
62
- done >expect &&
63
- echo "Did you forget to ${sq}git add${sq}?" >>expect &&
64
- ls ../y* >>expect &&
65
- test_must_fail git ls-files -o --error-unmatch ../[xy]* >actual 2>&1 &&
66
- test_cmp expect actual
63
+ done >expect.err &&
64
+ echo "Did you forget to ${sq}git add${sq}?" >>expect.err &&
65
+ ls ../y* >expect.out &&
66
+ test_must_fail git ls-files -o --error-unmatch ../[xy]* >actual.out 2>actual.err &&
67
+ test_cmp expect.out actual.out &&
68
+ test_cmp expect.err actual.err
67
69
)
68
70
'
69
71
You can’t perform that action at this time.
0 commit comments