From f784fdc8b785e99f24116a5f6e2a7291da8dff0b Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 26 Mar 2020 23:07:45 -0400 Subject: [PATCH] Add flag to keep DF open after tests --- travis/run-tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/travis/run-tests.py b/travis/run-tests.py index 0813fabc4..804fb4c24 100644 --- a/travis/run-tests.py +++ b/travis/run-tests.py @@ -13,6 +13,8 @@ parser.add_argument('--headless', action='store_true', help='Run without opening DF window (requires non-Windows)') parser.add_argument('--keep-status', action='store_true', 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() MAX_TRIES = 5 @@ -57,8 +59,8 @@ with open(test_init_file, 'w') as f: f.write(''' devel/dump-rpc dfhack-rpc.txt :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: with open(init_txt_path, 'w') as f: