import contextlib
import socket
-from cStringIO import StringIO
from teuthology import misc as teuthology
from teuthology import contextutil
from teuthology.task.common_fs_utils import generic_mkfs
'bs=1024',
'conv=fsync',
])
- proc = rem.run(args=['mktemp'], stdout=StringIO(),)
- tfile2 = proc.stdout.getvalue().strip()
+ tfile2 = rem.sh('mktemp').strip()
rem.run(
args=[
'sudo',
run.Raw('>'),
tfile2,
])
- proc = rem.run(
- args=[
+ size = rem.sh(
+ [
'ls',
'-l',
file_from,
run.Raw('|'),
'awk',
'{print $5}', ],
- stdout=StringIO(),
- )
- size = proc.stdout.getvalue().strip()
+ ).strip()
rem.run(
args=[
'cmp',
])
test_phrase = 'The time has come the walrus said to speak of many things.'
lnkpath = tgt_devname_get(ctx, image_name)
- proc = rem.run(args=['mktemp'], stdout=StringIO(),)
- tfile1 = proc.stdout.getvalue().strip()
+ tfile1 = rem.sh('mktemp').strip()
rem.run(
args=[
'echo',