We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2c31f commit b472e84Copy full SHA for b472e84
check/check.rb
@@ -691,9 +691,9 @@ def finished?
691
# true if the FORM job put warning messages.
692
def warning?(expected_message = nil)
693
if expected_message.nil?
694
- @stdout =~ /(^|\R)\S+ Line \d+ --> Warning/
+ @stdout.include?("Warning:")
695
else
696
- @cleaned_stdout =~ Regexp.new("(^|\\R)\\S+ Line \\d+ --> Warning: .*#{Regexp.escape(expected_message)}")
+ @cleaned_stdout =~ Regexp.new("Warning: .*#{Regexp.escape(expected_message)}")
697
end
698
699
0 commit comments