@@ -130,7 +130,8 @@ World
130
130
EOF
131
131
132
132
test_expect_success ' run_command runs in parallel with more jobs available than tasks' '
133
- test-tool run-command run-command-parallel 5 sh -c "printf \"%s\n%s\n\" Hello World" 2>actual &&
133
+ test-tool run-command run-command-parallel 5 sh -c "printf \"%s\n%s\n\" Hello World" >out 2>actual &&
134
+ test_must_be_empty out &&
134
135
test_cmp expect actual
135
136
'
136
137
@@ -141,7 +142,8 @@ test_expect_success 'run_command runs ungrouped in parallel with more jobs avail
141
142
'
142
143
143
144
test_expect_success ' run_command runs in parallel with as many jobs as tasks' '
144
- test-tool run-command run-command-parallel 4 sh -c "printf \"%s\n%s\n\" Hello World" 2>actual &&
145
+ test-tool run-command run-command-parallel 4 sh -c "printf \"%s\n%s\n\" Hello World" >out 2>actual &&
146
+ test_must_be_empty out &&
145
147
test_cmp expect actual
146
148
'
147
149
@@ -152,7 +154,8 @@ test_expect_success 'run_command runs ungrouped in parallel with as many jobs as
152
154
'
153
155
154
156
test_expect_success ' run_command runs in parallel with more tasks than jobs available' '
155
- test-tool run-command run-command-parallel 3 sh -c "printf \"%s\n%s\n\" Hello World" 2>actual &&
157
+ test-tool run-command run-command-parallel 3 sh -c "printf \"%s\n%s\n\" Hello World" >out 2>actual &&
158
+ test_must_be_empty out &&
156
159
test_cmp expect actual
157
160
'
158
161
@@ -172,7 +175,8 @@ asking for a quick stop
172
175
EOF
173
176
174
177
test_expect_success ' run_command is asked to abort gracefully' '
175
- test-tool run-command run-command-abort 3 false 2>actual &&
178
+ test-tool run-command run-command-abort 3 false >out 2>actual &&
179
+ test_must_be_empty out &&
176
180
test_cmp expect actual
177
181
'
178
182
@@ -187,7 +191,8 @@ no further jobs available
187
191
EOF
188
192
189
193
test_expect_success ' run_command outputs ' '
190
- test-tool run-command run-command-no-jobs 3 sh -c "printf \"%s\n%s\n\" Hello World" 2>actual &&
194
+ test-tool run-command run-command-no-jobs 3 sh -c "printf \"%s\n%s\n\" Hello World" >out 2>actual &&
195
+ test_must_be_empty out &&
191
196
test_cmp expect actual
192
197
'
193
198
0 commit comments