Lines Matching +full:stdout +full:- +full:path
33 p = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
38 m = re.search(r'Run completed in (\d+.\d+) seconds.', p.stdout)
41 return {'error': f'failed to parse qemu-img output: {p.stdout}'}
43 return {'error': f'qemu-img failed: {p.returncode}: {p.stdout}'}
47 fname = f"{case['dir']}/prealloc-test.qcow2"
53 subprocess.run([env['qemu-img-binary'], 'create', '-f', 'qcow2', fname,
54 '16G'], stdout=subprocess.DEVNULL,
57 args = [env['qemu-img-binary'], 'bench', '-c', str(case['count']),
58 '-d', '64', '-s', case['block-size'], '-t', 'none', '-n', '-w']
60 args += ['--image-opts',
64 args += ['-f', 'qcow2', fname]
93 print(f'USAGE: {sys.argv[0]} <qemu-img binary> '
101 'id': 'no-prealloc',
102 'qemu-img-binary': qemu_img,
107 'qemu-img-binary': qemu_img,
116 name, path = disk.split(':') variable
119 'block-size': '16k',
120 'dir': path
124 'block-size': '16k',
125 'dir': path