Commit b062c5ec authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

Merge branch 'issue-16new' into 'master'

issue 16 updated

See merge request luna/luna!38
parents 1d83a299 4c47181b
......@@ -3,7 +3,7 @@
# TODO add ability to use some other temporary directory for building
# tests, not .luna subdirectory, and allow setup via environment var.
import sys, os, subprocess, json, re, datetime, signal
import sys, os, subprocess, json, re, datetime, signal, shutil
from common import *
......@@ -176,6 +176,13 @@ def parse_args(args):
raise FatalError("no value provided for -D key");
elif arg=='-c':
elif arg.startswith('--output-file='):
if 'SO_OUTPUT_FILE_NAME' in conf:
conf['SO_OUTPUT_FILE_NAME']=arg.split('=', 1)[1]
else: raise FatalError('--output-file supported only with -c before')
if arg[cur].startswith('-'):
warn(1, "suspicious program name: '%s' (mistyped a key?)" \
......@@ -695,7 +702,9 @@ def main():
info('running program')
if 'SO_OUTPUT_FILE_NAME' in conf:
shutil.copy(os.path.join(conf['BUILD_DIR'], ''), conf['SO_OUTPUT_FILE_NAME'])
# =======
# run rts
# =======
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment