@@ -544,38 +544,38 @@ def test_check_log_for_errors(self):
544544 "enabling -Werror" ,
545545 "the process crashed with 0"
546546 ])
547- expected_error_msg = r"Found 2 error\(s\) in command output " \
548- r"\(output: error found\n\tthe process crashed with 0\)"
547+ expected_msg = r"Found 2 error\(s\) in command output " \
548+ r"\(output: error found\n\tthe process crashed with 0\)"
549549
550550 # String promoted to list
551- self .assertErrorRegex (EasyBuildError , expected_error_msg , check_log_for_errors , input_text ,
551+ self .assertErrorRegex (EasyBuildError , expected_msg , check_log_for_errors , input_text ,
552552 r"\b(error|crashed)\b" )
553553 # List of string(s)
554- self .assertErrorRegex (EasyBuildError , expected_error_msg , check_log_for_errors , input_text ,
554+ self .assertErrorRegex (EasyBuildError , expected_msg , check_log_for_errors , input_text ,
555555 [r"\b(error|crashed)\b" ])
556556 # List of tuple(s)
557- self .assertErrorRegex (EasyBuildError , expected_error_msg , check_log_for_errors , input_text ,
557+ self .assertErrorRegex (EasyBuildError , expected_msg , check_log_for_errors , input_text ,
558558 [(r"\b(error|crashed)\b" , ERROR )])
559559
560- expected_error_msg = "Found 2 potential error(s) in command output " \
561- "(output: error found\n \t the process crashed with 0)"
560+ expected_msg = "Found 2 potential error(s) in command output " \
561+ "(output: error found\n \t the process crashed with 0)"
562562 init_logging (logfile , silent = True )
563563 check_log_for_errors (input_text , [(r"\b(error|crashed)\b" , WARN )])
564564 stop_logging (logfile )
565- self .assertTrue (expected_error_msg in read_file (logfile ))
565+ self .assertTrue (expected_msg in read_file (logfile ))
566566
567- expected_error_msg = r"Found 2 error\(s\) in command output \(output: error found\n\ttest failed\)"
567+ expected_msg = r"Found 2 error\(s\) in command output \(output: error found\n\ttest failed\)"
568568 write_file (logfile , '' )
569569 init_logging (logfile , silent = True )
570- self .assertErrorRegex (EasyBuildError , expected_error_msg , check_log_for_errors , input_text , [
570+ self .assertErrorRegex (EasyBuildError , expected_msg , check_log_for_errors , input_text , [
571571 r"\berror\b" ,
572572 (r"\ballowed-test failed\b" , IGNORE ),
573573 (r"(?i)\bCRASHED\b" , WARN ),
574574 "fail"
575575 ])
576576 stop_logging (logfile )
577- expected_error_msg = "Found 1 potential error(s) in command output (output: the process crashed with 0)"
578- self .assertTrue (expected_error_msg in read_file (logfile ))
577+ expected_msg = "Found 1 potential error(s) in command output (output: the process crashed with 0)"
578+ self .assertTrue (expected_msg in read_file (logfile ))
579579
580580
581581def suite ():
0 commit comments