def run_shell_command(self, command, working_dir):
if not command:
return False
if BEFORE_CALLBACK:
os.system(BEFORE_CALLBACK)
if AFTER_CALLBACK:
command += " ; " + AFTER_CALLBACK
self.save_test_run(command, working_dir)
if COMMAND_PREFIX:
command = COMMAND_PREFIX + ' ' + command
if int(sublime.version().split('.')[0]) <= 2:
command = [command]
self.view.window().run_command("exec", {
"cmd": command,
"shell": True,
"working_dir": working_dir,
"file_regex": r"([^ ]*\.ex?):?(\d*)",
"encoding": TERMINAL_ENCODING
})
self.display_results()
return True
run_elixir_test.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录