diff options
author | Homer Horwitz | 2008-11-02 13:13:45 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-11-02 13:13:45 +0000 |
commit | 9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c (patch) | |
tree | d8f33e7edc13d9d9fd01f32d6212f4467afba087 | |
parent | - Add Util.isUUID (diff) | |
download | opensim-SC-9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c.zip opensim-SC-9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c.tar.gz opensim-SC-9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c.tar.bz2 opensim-SC-9c8e4d09143d8dfb0827fa251483b4e4fb9bdf9c.tar.xz |
Added some more coloring to nant-color (especially for tests)
-rwxr-xr-x | nant-color | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -46,6 +46,12 @@ def colorize(str) | |||
46 | str.sub!(/(Build Succeeded)/i, green('\1')) | 46 | str.sub!(/(Build Succeeded)/i, green('\1')) |
47 | str.sub!(/(Compilation succeeded)/, green('\1')) | 47 | str.sub!(/(Compilation succeeded)/, green('\1')) |
48 | str.sub!(/(\d+ warning\(s\))/, yellow('\1')) | 48 | str.sub!(/(\d+ warning\(s\))/, yellow('\1')) |
49 | str.sub!(/(Build Failed)/i, red('\1')) | ||
50 | |||
51 | str.sub!(/(Tests run: \d+, Failures: 0, Not run: 0,.*)/, green('\1')) | ||
52 | str.sub!(/(Tests run: \d+, Failures: 0, Not run: [1-9].*)/, yellow('\1')) | ||
53 | str.sub!(/(Tests run: \d+, Failures: [1-9].*)/, red('\1')) | ||
54 | str.sub!(/(Test Case Failures:)/, red('\1')) | ||
49 | return str | 55 | return str |
50 | end | 56 | end |
51 | 57 | ||