Commit 0f0a897083d87bd85fdcd3f3b7a7f37e47faa248

Authored by Etienne Pallier
1 parent d02249e6
Exists in dev

bugfix test

privatedev/plugin/agent/AgentBasic.py
... ... @@ -72,7 +72,7 @@ class AgentBasic(Agent):
72 72 # get_specific_cmds KO (with cmd_existing_but_unimplemented)
73 73 ##("self get_specific_cmds", 200, 'EXCEPTION - One specific cmd is unimplemented: cmd_existing_but_unimplemented', Agent.CMD_STATUS.CMD_EXEC_ERROR),
74 74 # get_specific_cmds OK (all commands implemented)
75   - (COMMIT_ONLY, " self get_specific_cmds ", 200, 'do_specific10(arg1:int,arg2:int,arg3:float,arg4:str,arg5:typing.Tuple[int, str, int],arg6:typing.List[int]);do_specific30()', Agent.CMD_STATUS.CMD_EXECUTED),
  75 + (COMMIT_ONLY, " self get_specific_cmds ", 200, 'do_specific10(arg1:int,arg2:int,arg3:float,arg4:str,arg5:typing.Tuple[int, str, int],arg6:typing.List[int]);do_specific30();cmd_raising_error_exec()', Agent.CMD_STATUS.CMD_EXECUTED),
76 76  
77 77 # - Error case 2 - CMD_INVALID
78 78 # unknwon command
... ...
src/core/pyros_django/agent/Agent.py
... ... @@ -315,7 +315,7 @@ class CmdExceptionExecError(CmdException):
315 315 ''' Raised when a RUNNING Agent cmd has had a running error '''
316 316 # @Override
317 317 def __init__( self, cmd, msg:str=None):
318   - super().__init__(cmd, msg if msg else "Error during Execution)")
  318 + super().__init__(cmd, msg if msg else "Error during Execution")
319 319 #def __str__(self): return f"The running Agent command '{self.cmd_name}' has had an error (during execution)"
320 320  
321 321 # @Override
... ... @@ -323,7 +323,7 @@ class CmdExceptionExecTimeout(CmdException):
323 323 ''' Raised when a RUNNING Agent cmd is timeout '''
324 324 # @Override
325 325 def __init__( self, cmd, msg:str=None):
326   - super().__init__(cmd, msg if msg else "Execution is TIMEOUT)")
  326 + super().__init__(cmd, msg if msg else "Execution is TIMEOUT")
327 327 #def __str__(self): return f"The running Agent command '{self.cmd_name}' is timeout"
328 328  
329 329 # @Override
... ... @@ -331,7 +331,7 @@ class CmdExceptionExecKilled(CmdException):
331 331 ''' Raised when a RUNNING Agent cmd has been aborted (by another agent) '''
332 332 # @Override
333 333 def __init__( self, cmd, msg:str=None):
334   - super().__init__(cmd, msg if msg else "Command was KILLED during Execution (by another agent)")
  334 + super().__init__(cmd, msg if msg else "Command was KILLED during Execution (by another agent")
335 335 #def __str__(self): return f"The running Agent command '{self.cmd_name}' has been killed (by another agent)"
336 336  
337 337 ###
... ...
src/core/pyros_django/agent/AgentBasic.py
... ... @@ -72,7 +72,7 @@ class AgentBasic(Agent):
72 72 # get_specific_cmds KO (with cmd_existing_but_unimplemented)
73 73 ##("self get_specific_cmds", 200, 'EXCEPTION - One specific cmd is unimplemented: cmd_existing_but_unimplemented', Agent.CMD_STATUS.CMD_EXEC_ERROR),
74 74 # get_specific_cmds OK (all commands implemented)
75   - (COMMIT_ONLY, " self get_specific_cmds ", 200, 'do_specific10(arg1:int,arg2:int,arg3:float,arg4:str,arg5:typing.Tuple[int, str, int],arg6:typing.List[int]);do_specific30()', Agent.CMD_STATUS.CMD_EXECUTED),
  75 + (COMMIT_ONLY, " self get_specific_cmds ", 200, 'do_specific10(arg1:int,arg2:int,arg3:float,arg4:str,arg5:typing.Tuple[int, str, int],arg6:typing.List[int]);do_specific30();cmd_raising_error_exec()', Agent.CMD_STATUS.CMD_EXECUTED),
76 76  
77 77 # - Error case 2 - CMD_INVALID
78 78 # unknwon command
... ...