Example #1
0
 def test_action_tracer_is_wrapper_extra_python_flag(self):
     command = action_tracer.ToolCommand(
         tokens=[
             'path/to/python3.x', '-S', 'path/to/action_tracer.py', '--',
             'foo.sh', 'arg1', 'arg2'
         ])
     self.assertTrue(action_tracer.is_known_wrapper(command))
Example #2
0
 def test_action_tracer_is_not_wrapper(self):
     command = action_tracer.ToolCommand(
         tokens=[
             'path/to/python3.x', 'path/to/not_a_wrapper.py', '--opt1',
             'arg1'
         ])
     self.assertFalse(action_tracer.is_known_wrapper(command))
Example #3
0
 def test_action_tracer_is_wrapper_implicit_interpreter(self):
     command = action_tracer.ToolCommand(
         tokens=['path/to/action_tracer.py', '--', 'foo.sh', 'arg1', 'arg2'])
     self.assertTrue(action_tracer.is_known_wrapper(command))