diff --git a/integtest/crt_reader_test.py b/integtest/crt_reader_test.py index 6d1d033..61f4b8c 100644 --- a/integtest/crt_reader_test.py +++ b/integtest/crt_reader_test.py @@ -163,8 +163,9 @@ nanorc_command_list += "scrap terminate".split() def test_nanorc_success(run_nanorc): + # print the name of the current test current_test = os.environ.get("PYTEST_CURRENT_TEST") - match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test) + match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test) if match_obj: current_test = match_obj.group(1) banner_line = re.sub(".", "=", current_test)