aboutsummaryrefslogtreecommitdiff
path: root/runtest.rb
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-05-09 18:51:35 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-05-09 18:51:54 +0900
commit38892d828494ac81c0dd0072a67bf4805e49e476 (patch)
tree3cec1254f9e460c163193eeaf347e68b67f6563e /runtest.rb
parent9f6343caff8c7c505dd9e1b5a22e2b60f3c0d94f (diff)
downloadkati-38892d828494ac81c0dd0072a67bf4805e49e476.tar.gz
Normalize log for recent ninja
for issue #68
Diffstat (limited to 'runtest.rb')
-rwxr-xr-xruntest.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtest.rb b/runtest.rb
index 34b43ba..fc594d5 100755
--- a/runtest.rb
+++ b/runtest.rb
@@ -109,13 +109,16 @@ def normalize_ninja_log(log, mk)
'*** No rule to make target \\1.')
log.gsub!(/^ninja: warning: multiple rules generate (.*)\. builds involving this target will not be correct.*$/,
'ninja: warning: multiple rules generate \\1.')
+
if mk =~ /err_error_in_recipe.mk/
# This test expects ninja fails. Strip ninja specific error logs.
- log.gsub!(/^FAILED: .*\n/, '')
- log.gsub!(/^ninja: .*\n/, '')
+ ninja_failed_subst = ''
elsif mk =~ /\/fail_/
# Recipes in these tests fail.
- log.gsub!(/^FAILED: .*/, '*** [test] Error 1')
+ ninja_failed_subst = "*** [test] Error 1\n"
+ end
+ if ninja_failed_subst
+ log.gsub!(/^FAILED: (.*\n\/bin\/bash)?.*\n/, ninja_failed_subst)
log.gsub!(/^ninja: .*\n/, '')
end
log