Browse code

Ensure testsuite-out is created before running dd

Alex Harford authored on 2017/02/23 02:20:48
Showing 1 changed files
... ...
@@ -377,6 +377,7 @@ test_s3cmd("Put from stdin", ['put', '-', '%s/single-file/single-file.txt' % pbu
377 377
 f.close()
378 378
 
379 379
 ## ====== Multipart put
380
+os.system('mkdir -p testsuite-out')
380 381
 os.system('dd if=/dev/urandom of=testsuite-out/urandom.bin bs=1M count=16 > /dev/null 2>&1')
381 382
 test_s3cmd("Put multipart", ['put', '--multipart-chunk-size-mb=5', 'testsuite-out/urandom.bin', '%s/urandom.bin' % pbucket(1)],
382 383
            must_not_find = ['abortmp'])