diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-11 14:23:12 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-11 14:57:54 +0900 |
commit | 3498f34cba95d4b6dd30d852a5b0fc43e96116b3 (patch) | |
tree | 163516976cd2be44ca9c9db5996711f0a2a4632b /runtest.rb | |
parent | b3591eda330af9688f9fe4c1b1f59ccbcd9696c5 (diff) | |
download | kati-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-x | runtest.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |