blob: bb546e89a9d699103cd04a34cbe9dff4bfc3a581 [file] [log] [blame]
"""isostream: runs an isostream test"""
import pipes
def RunIsostreamTest(run, host, bandwidth=14, time=10):
"""RunIsostreamTest runs an isostream test and returns the results."""
# add 1 second to the timeout so we get results for the full requested time.
isostream_cmd = ['./timeout', '{:d}'.format(time + 1),
'isostream', '-b', '{:d}'.format(bandwidth), host]
return run(isostream_cmd)