Skip to content

Commit 327435f

Browse files
committed
Improve spec-runner to handle mixed warn/error output
1 parent c8409fd commit 327435f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/99_sass_specs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ sub stderr
120120
$stderr =~ s/[^\n]+(\d+) DEBUG: [^\n]*//g;
121121
$norm_output->($stderr);
122122
# clean todo warnings (remove all warning blocks)
123-
$stderr =~ s/^(?:DEPRECATION )?WARNING(?:[^\n]+\n)*\n*//gm;
123+
$stderr =~ s/^(?:DEPRECATION )?WARNING(?:(?!Error)[^\n]+\n)*\n*//gm;
124124
$stderr =~ s/\n.*\Z//s;
125125
utf8::decode($stderr);
126126
return $stderr;

0 commit comments

Comments
 (0)