From: Sage Weil Date: Tue, 29 Jan 2013 11:45:45 +0000 (-0800) Subject: admin_socket: don't bother remote executing if there is no test X-Git-Tag: 1.1.0~2353 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e805b7d62e3e6642ea6361a41eec9b2fdef72596;p=teuthology.git admin_socket: don't bother remote executing if there is no test --- diff --git a/teuthology/task/admin_socket.py b/teuthology/task/admin_socket.py index e16605e631..aaeef11459 100644 --- a/teuthology/task/admin_socket.py +++ b/teuthology/task/admin_socket.py @@ -131,19 +131,18 @@ def _run_tests(ctx, client, tests): test_path, ], ) - else: - test_path = '/bin/true' args = config.get('args', []) assert isinstance(args, list), \ 'admin socket command args must be a list' sock_out = _socket_command(remote, socket_path, command, args) - remote.run( - args=[ - test_path, - ], - stdin=json.dumps(sock_out), - ) + if test_path is not None: + remote.run( + args=[ + test_path, + ], + stdin=json.dumps(sock_out), + ) finally: remote.run(