|
|
@ -13,6 +13,8 @@ parser.add_argument('--headless', action='store_true',
|
|
|
|
help='Run without opening DF window (requires non-Windows)')
|
|
|
|
help='Run without opening DF window (requires non-Windows)')
|
|
|
|
parser.add_argument('--keep-status', action='store_true',
|
|
|
|
parser.add_argument('--keep-status', action='store_true',
|
|
|
|
help='Do not delete final status file')
|
|
|
|
help='Do not delete final status file')
|
|
|
|
|
|
|
|
parser.add_argument('--no-quit', action='store_true',
|
|
|
|
|
|
|
|
help='Do not quit DF when done')
|
|
|
|
args = parser.parse_args()
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
MAX_TRIES = 5
|
|
|
|
MAX_TRIES = 5
|
|
|
@ -57,8 +59,8 @@ with open(test_init_file, 'w') as f:
|
|
|
|
f.write('''
|
|
|
|
f.write('''
|
|
|
|
devel/dump-rpc dfhack-rpc.txt
|
|
|
|
devel/dump-rpc dfhack-rpc.txt
|
|
|
|
:lua dfhack.internal.addScriptPath(dfhack.getHackPath())
|
|
|
|
:lua dfhack.internal.addScriptPath(dfhack.getHackPath())
|
|
|
|
test/main "lua scr.breakdown_level=df.interface_breakdown_types.QUIT"
|
|
|
|
test/main "lua scr.breakdown_level=df.interface_breakdown_types.%s"
|
|
|
|
''')
|
|
|
|
''' % ('NONE' if args.no_quit else 'QUIT'))
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
with open(init_txt_path, 'w') as f:
|
|
|
|
with open(init_txt_path, 'w') as f:
|
|
|
|