

def _run(self, pulsar_args):
    run_args = pulsar_args[:]
    pulsar_args.extend(['--command', 'echo `pwd` > output1; cp input1 output_test2', '--working_directory', self._working_directory, '--output', 'output1', '--output_pattern', 'output_test\\d', '--result_json', self._result])
    exit_code = run.main(run_args)
    if os.path.exists(self._result):
        print(open(self._result, 'r').read())
    else:
        assert False, 'No result json file found'
    assert (exit_code == 0)

dataset/ETHPy150Open galaxyproject/pulsar/test/script_run_test.py ScriptRunTestCase._run/VarMisuse@19/29 `run_args`->`pulsar_args`