From 81c4a89128ec09e3ddee4cd6f14c7cfdf405a7f2 Mon Sep 17 00:00:00 2001 From: AndreaBartolini Date: Fri, 20 Sep 2024 17:48:48 +0200 Subject: [PATCH] debug messages activation by flag added --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 1a7883d..7118519 100755 --- a/test.py +++ b/test.py @@ -42,13 +42,15 @@ parser.add_argument('--noSync', action="store_true", help="Move files using python instead of rsync", default=False) parser.add_argument('--timeout', default=0, help="=[value] timeout in seconds for each test, it overrides the timeout calculated by the script") parser.add_argument('--msysEnvironment', help = 'MSYS2 environment used by OpenModelica on Windows.', default = 'ucrt64') +parser.add_argument('--debug', action="store_true", help="turn on the DEBUG mode", default=False) args = parser.parse_args() configs = args.configs branch = args.branch noSync = args.noSync isWin = os.name == 'nt' -DEBUG = False # set this to True for debug output +DEBUG = args.debug or False # set this to True for debug output + # result location can be on a remote server, do NOT use os.path.abspath on it if the system is not Windows or if --noSync=True result_location = '' if not isWin and not noSync: