From a875faa9c74593d8204e13ba399becf864822625 Mon Sep 17 00:00:00 2001 From: Ellen Arteca Date: Mon, 21 Aug 2023 23:10:25 -0400 Subject: [PATCH] lil fix --- src/test_JS_repo_lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test_JS_repo_lib.py b/src/test_JS_repo_lib.py index 73ae479..81b415d 100644 --- a/src/test_JS_repo_lib.py +++ b/src/test_JS_repo_lib.py @@ -169,7 +169,9 @@ def run_tests( manager, pkg_json, crawler, repo_name, cur_dir="."): # put the package.json back run_command( "mv TEMP_package.json_TEMP package.json") # not verbose test mode -- just run the normal test command - else: + # if start and end time are both still zero then no instrumented test commands ran + # and so we also rerun here + if (not crawler.TEST_VERBOSE_ALL_OUTPUT) or (start_time == 0 and end_time == 0): start_time = time.time() error, output, retcode = run_command( manager + t, crawler.TEST_TIMEOUT) end_time = time.time()