]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
admin_socket: don't bother remote executing if there is no test
authorSage Weil <sage@inktank.com>
Tue, 29 Jan 2013 11:45:45 +0000 (03:45 -0800)
committerSage Weil <sage@inktank.com>
Tue, 29 Jan 2013 11:45:45 +0000 (03:45 -0800)
teuthology/task/admin_socket.py

index e16605e6317fb6ffaa96866345da2de34b67bc36..aaeef114597ccfef265b3ab8479de8ddd33ea2e1 100644 (file)
@@ -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(