diff options
author | elijah <elijah@riseup.net> | 2016-03-18 09:40:41 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-18 09:40:41 -0700 |
commit | 966120293ec289636874edda6089b99dc49cb9ae (patch) | |
tree | b1683e6d43e926abab92b590e5df081dce822c98 /bin | |
parent | 7699762d6f94764b1183856c66a2640261fb46dc (diff) |
tests: fix mx test, ensure password is redacted.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/run_tests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/run_tests b/bin/run_tests index 4cb652db..5733f526 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -279,7 +279,7 @@ class LeapRunner < MiniTest::Unit def report_line(prefix, klass, meth, e=nil, message=nil) msg_txt = nil if message - message = message.sub(/http:\/\/([a-z_]+):([a-zA-Z0-9_]+)@/, "http://\\1:REDACTED@") + message = message.gsub(/http:\/\/([a-z_]+):([a-zA-Z0-9_]+)@/, "http://\\1:REDACTED@") if $output_format == :human indent = "\n " msg_txt = indent + message.split("\n").join(indent) |