out/run.sh: write before execution

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-03-14 00:00:02 +00:00
parent 3aa9fbf972
commit 44a45c0656
4 changed files with 22 additions and 4 deletions

3
run
View File

@@ -840,14 +840,13 @@ Extra options to append at the end of the emulator command line.
out_file = self.env['termout_file']
exit_status = self.sh.run_cmd(
cmd,
cmd_file=self.env['run_cmd_file'],
cmd_files=[self.env['run_cmd_file'], os.path.join(self.env['out_dir'], self.env['run_cmd_file_basename'])],
extra_env=extra_env,
out_file=out_file,
raise_on_failure=False,
show_stdout=show_stdout,
stdin_path=self.env['stdin_file'],
)
self.sh.cp(self.env['run_cmd_file'], self.env['out_dir'], quiet=True)
if self.env['debug_vm_rr']:
rr_cmd = ['rr', 'replay', LF, '-o', '-q', LF]
for arg in shlex.split(self.env['debug_vm_args']):