about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarosl LEE <github@barosl.com>2015-01-21 02:16:49 +0900
committerBarosl LEE <github@barosl.com>2015-01-21 02:16:49 +0900
commit0efdda314a48b5824673510fbaa0c6d9ddf301df (patch)
tree9329aeabf7f0e4fc90aecb56848ee0c5862108b9
parent75efb228089c71eec4c7b57c531f860686086d7f (diff)
parentd1b1b62ae8512c3324f774124b772aac2aba2c89 (diff)
downloadrust-0efdda314a48b5824673510fbaa0c6d9ddf301df.tar.gz
rust-0efdda314a48b5824673510fbaa0c6d9ddf301df.zip
Rollup merge of #21369 - iKevinY:no-travis-notes, r=sanxiyn
Updated `tidy.py` to skip printing NOTEs if the [`TRAVIS`](http://docs.travis-ci.com/user/ci-environment/#Environment-variables) environment variable is set.
-rw-r--r--src/etc/tidy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/tidy.py b/src/etc/tidy.py
index 3d44c27a16e..373536d419b 100644
--- a/src/etc/tidy.py
+++ b/src/etc/tidy.py
@@ -8,7 +8,7 @@
 # option. This file may not be copied, modified, or distributed
 # except according to those terms.
 
-import sys, fileinput, subprocess, re
+import sys, fileinput, subprocess, re, os
 from licenseck import *
 import snapshot
 
@@ -71,7 +71,7 @@ try:
             if match:
                 report_err("XXX is no longer necessary, use FIXME")
             match = re.match(r'^.*//\s*(NOTE.*)$', line)
-            if match:
+            if match and "TRAVIS" not in os.environ:
                 m = match.group(1)
                 if "snap" in m.lower():
                     report_warn(match.group(1))