From 77bf224b3f439eef9e685bff4669fa8e0fbf9d71 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Sun, 8 Sep 2024 00:24:33 -0500 Subject: [PATCH] report if a run is timeout to progress.yaml --- tools/regression-tests/run_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/regression-tests/run_tests.py b/tools/regression-tests/run_tests.py index ee56a75682..cb7c64308f 100644 --- a/tools/regression-tests/run_tests.py +++ b/tools/regression-tests/run_tests.py @@ -410,7 +410,7 @@ def iterate(lmp_binary, input_folder, input_list, config, results, progress_file logger.info(f"\n Output:\n{output}") logger.info(f"\n Error:\n{error}") - msg = f"{input}: {{ folder: {input_folder}, status: \"failed, no Total wall time in the output.\", walltime: {walltime} }}\n" + msg = f"{input}: {{ folder: {input_folder}, status: \"failed, no Total wall time in the output, {error}\", walltime: {walltime} }}\n" progress.write(msg) progress.close() failure.write(msg) @@ -851,7 +851,8 @@ def execute(lmp_binary, config, input_file_name, generate_ref_yaml=False): logger.info(msg) print(msg) - return cmd_str, "", "", -1 + error_str = f"timeout ({timeout}s expired)" + return cmd_str, "", error_str, -1 ''' get the reference walltime by running the lmp_binary with config with an input script in the bench/ folder