|
229 | 229 |
|
230 | 230 | it "should attempt rsync with ionice first" do |
231 | 231 | expect(gl_projects).to receive(:system).with( |
232 | | - 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
| 232 | + 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
233 | 233 | "#{tmp_repo_path}/", new_repo_path |
234 | 234 | ).and_return(true) |
235 | 235 |
|
|
238 | 238 |
|
239 | 239 | it "should attempt rsync without ionice if with ionice fails" do |
240 | 240 | expect(gl_projects).to receive(:system).with( |
241 | | - 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
| 241 | + 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
242 | 242 | "#{tmp_repo_path}/", new_repo_path |
243 | 243 | ).and_return(false) |
244 | 244 |
|
|
251 | 251 |
|
252 | 252 | it "should fail if both rsync attempts fail" do |
253 | 253 | expect(gl_projects).to receive(:system).with( |
254 | | - 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
| 254 | + 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"', |
255 | 255 | "#{tmp_repo_path}/", new_repo_path |
256 | 256 | ).and_return(false) |
257 | 257 |
|
|
0 commit comments