aboutsummaryrefslogtreecommitdiff
path: root/runtest.rb
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-08-11 14:23:12 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-08-11 14:57:54 +0900
commit3498f34cba95d4b6dd30d852a5b0fc43e96116b3 (patch)
tree163516976cd2be44ca9c9db5996711f0a2a4632b /runtest.rb
parentb3591eda330af9688f9fe4c1b1f59ccbcd9696c5 (diff)
downloadkati-3498f34cba95d4b6dd30d852a5b0fc43e96116b3.tar.gz
[C++] Reduce unnecessary shell invocations
When FindEmulator is sure the target directory does not exist, we do not need to run the shell command.
Diffstat (limited to 'runtest.rb')
-rwxr-xr-xruntest.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtest.rb b/runtest.rb
index c8d13d1..5a25cd7 100755
--- a/runtest.rb
+++ b/runtest.rb
@@ -120,6 +120,7 @@ def normalize_make_log(expected)
expected.gsub!(/Makefile:\d+: commands for target ".*?" failed\n/, '')
# We treat some warnings as errors.
expected.gsub!(/Nothing to be done for "test"\.\n/, '')
+ expected.gsub!(/^\/bin\/sh: line 0: /, '')
expected
end
@@ -135,6 +136,7 @@ def normalize_kati_log(output)
output.gsub!(/\/bin\/sh: ([^:]*): command not found/,
"\\1: Command not found")
output.gsub!(/.*: warning for parse error in an unevaluated line: .*\n/, '')
+ output.gsub!(/^FindEmulator: /, '')
output.gsub!(/ (\.\/+)+kati\.\S+/, '') # kati log files in find_command.mk
output.gsub!(/ (\.\/+)+test\S+.json/, '') # json files in find_command.mk
output