From fe1a271d695ab731a0fa448bfd9ce2f486ac99c3 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 3 Oct 2011 14:04:53 -0700 Subject: [PATCH] watch_notify_stress.py: add ceph flags option Signed-off-by: Samuel Just --- teuthology/task/watch_notify_stress.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/teuthology/task/watch_notify_stress.py b/teuthology/task/watch_notify_stress.py index cd764041e8109..baea5e5a5ac69 100644 --- a/teuthology/task/watch_notify_stress.py +++ b/teuthology/task/watch_notify_stress.py @@ -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 -- 2.39.5