| commit | 72aace79c07b49df1daa123790bf52230e86d759 | [log] [tgz] |
|---|---|---|
| author | Liam McLoughlin <[email protected]> | Thu Jan 16 21:58:33 2014 |
| committer | chrome-internal-fetch <[email protected]> | Fri Jan 17 01:16:54 2014 |
| tree | af69e54578f7142d16bdf8afbc0c70f93b948826 | |
| parent | 1c166d34f116df3b7ae25ff455ddf0826972a3e5 [diff] |
platform2: add colorized output support when running tests BUG=chromium:312931 TEST=Run tests, see colorized output for PASS/FAIL/filter warnings Change-Id: I0d3bd7215fb4a941adef724f8c8e530bfd092eaf Reviewed-on: https://chromium-review.googlesource.com/182890 Reviewed-by: Mike Frysinger <[email protected]> Commit-Queue: Liam McLoughlin <[email protected]> Tested-by: Liam McLoughlin <[email protected]>
diff --git a/platform2_test.py b/platform2_test.py index e03a75e..83979e2 100755 --- a/platform2_test.py +++ b/platform2_test.py
@@ -154,6 +154,9 @@ env['LD_LIBRARY_PATH'] = ':'.join(ld_paths) + # Passthrough TERM so that we get colors in test output where supported. + env['TERM'] = os.environ.get("TERM") + if self.run_as_root or self.framework == 'qemu': cmd.append('sudo') for var, val in env.items():