Ignore NOTEs when Travis runs make tidy

Only print NOTE warnings if the 'TRAVIS' environment variable has not
been set. Addresses #21322.
This commit is contained in:
Kevin Yap 2015-01-18 08:47:05 -08:00
parent a833337943
commit d1b1b62ae8

View File

@ -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))