fix for tests launching multiple commands in parallel: block names must be unique.
| | |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <script> |
| | | import random |
| | | random.seed() |
| | | _id = '%s#%d' % (strftime('%Y-%m-%d %H:%M:%S',localtime()),random.randint(0,9)) |
| | | </script> |
| | | <message> |
| | | 'Running command:\n %s %s\nenv: %s\nworkdir: %s' % (command,arguments,env,path) |
| | | '%s: Running command:\n %s %s\nenv: %s\nworkdir: %s' % (_id,command,arguments,env,path) |
| | | </message> |
| | | |
| | | <block name="'runCommand wrapper'"> |
| | | <block name="'%s:Wrapper for %s' % (_id,command)"> |
| | | <process name="name"> |
| | | <location>location</location> |
| | | <command>command</command> |
| | |
| | | </process> |
| | | </block> |
| | | <message level="'info'"> |
| | | 'Command returned:\n%s' % STAXResult[0][1] |
| | | '%s: Command returned:\n%s' % (_id,STAXResult[0][1]) |
| | | </message> |
| | | <script> |
| | | def dig(var): |