mirror of
https://github.com/ceph/ceph
synced 2025-01-22 19:15:41 +00:00
watch_notify_stress.py: add ceph flags option
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
This commit is contained in:
parent
28d60172f6
commit
fe1a271d69
@ -48,15 +48,20 @@ def task(ctx, config):
|
||||
wait=True,
|
||||
)
|
||||
|
||||
proc = remote.run(
|
||||
args=[
|
||||
'/bin/sh', '-c',
|
||||
args =[ '/bin/sh', '-c',
|
||||
" ".join([
|
||||
'cd', '/tmp/cephtest/data;',
|
||||
'export CEPH_CLIENT_ID={id_}; export CEPH_CONF=ceph.conf; LD_PRELOAD=/tmp/cephtest/binary/usr/local/lib/librados.so.2 /tmp/cephtest/binary/usr/local/bin/test_stress_watch'.format(
|
||||
id_=id_),
|
||||
'export CEPH_CLIENT_ID={id_}; export CEPH_CONF=ceph.conf; export CEPH_ARGS="{flags}"; LD_PRELOAD=/tmp/cephtest/binary/usr/local/lib/librados.so.2 /tmp/cephtest/binary/usr/local/bin/test_stress_watch {flags}'.format(
|
||||
id_=id_,
|
||||
flags=config.get('flags', ''),
|
||||
)
|
||||
])
|
||||
],
|
||||
]
|
||||
|
||||
log.info("args are %s" % (args,))
|
||||
|
||||
proc = remote.run(
|
||||
args=args,
|
||||
logger=log.getChild('testsnaps.{id}'.format(id=id_)),
|
||||
stdin=run.PIPE,
|
||||
wait=False
|
||||
|
Loading…
Reference in New Issue
Block a user