def TestClientActionWithWorker(client_id, client_action, print_request=False, break_pdb=True, **kwargs):
 action_cls = actions.ActionPlugin.classes[client_action]
 request = action_cls.in_rdfvalue(**kwargs)
 if print_request:
  print str(request)
 StartFlowAndWorker(client_id, flow_name='ClientAction', action=client_action, break_pdb=break_pdb, action_args=request)

def TestClientActionWithWorker ( client_id , client_action , print_request = False , break_pdb = True , ** kwargs ) : action_cls = actions . ActionPlugin . classes [ client_action ] request = action_cls . in_rdfvalue ( ** kwargs ) if print_request : print str ( request ) StartFlowAndWorker ( client_id , flow_name = 'ClientAction' , action = client_action , break_pdb = break_pdb , action_args = request )
run a client action on a client and break on return .