Lines Matching refs:check_call

9 from subprocess import call, check_call, check_output, CalledProcessError
175 check_call('guestmount --pid-file guestmount.pid -a %s -m /dev/sda %s'
186 check_call('sudo mount -o %s %s %s'
190 check_call('sudo chmod a+rw %s' % mount_point, shell=True)
253 check_call('mkdir -p %s' % mount_dir, shell=True)
270 check_call('mkdir %s/SUBDIR' % mount_dir, shell=True)
276 check_call('dd if=/dev/urandom of=%s bs=1M count=1'
278 check_call('dd if=/dev/urandom of=%s bs=1M count=2 seek=2047'
280 check_call('dd if=/dev/urandom of=%s bs=1M count=1 seek=2499'
284 check_call('dd if=/dev/urandom of=%s bs=1M count=1'
289 # check_call('rm -f "%s.w"' % MB1, shell=True)
290 # check_call('rm -f "%s.w2"' % MB1, shell=True)
375 check_call('mkdir -p %s' % mount_dir, shell=True)
392 check_call('mkdir %s/dir1' % mount_dir, shell=True)
395 check_call('dd if=/dev/urandom of=%s bs=1K count=20'
403 check_call('dd if=%s of=%s bs=1K count=20'
405 check_call('dd if=%s of=%s bs=1K seek=5 count=20'
412 check_call('dd if=%s of=%s bs=1K count=20'
414 check_call('dd if=%s of=%s bs=1K seek=5 count=5'
421 check_call('dd if=%s of=%s bs=1K count=20'
423 check_call('dd if=%s of=%s bs=1K seek=20 count=20'
429 check_call('rm %s' % tmp_file, shell=True)
504 check_call('mkdir -p %s' % mount_dir, shell=True)
521 check_call('mkdir %s/dir1' % mount_dir, shell=True)
522 check_call('dd if=/dev/urandom of=%s/dir1/file1 bs=1K count=1'
524 check_call('dd if=/dev/urandom of=%s/dir1/file2 bs=1K count=1'
528 check_call('mkdir %s/dir2' % mount_dir, shell=True)
530 check_call('mkdir %s/dir2/0123456789abcdef%02x'
534 check_call('mkdir %s/dir4' % mount_dir, shell=True)
537 check_call('mkdir %s/dir5' % mount_dir, shell=True)
538 check_call('dd if=/dev/urandom of=%s/dir5/file1 bs=1K count=1'
587 check_call('mkdir -p %s' % mount_dir, shell=True)
604 check_call('mkdir %s/SUBDIR' % mount_dir, shell=True)
607 check_call('dd if=/dev/urandom of=%s bs=1M count=1'
611 check_call('dd if=/dev/urandom of=%s bs=10M count=1'