Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-322 tests: Pool test fixes for large number of OSTs
[fs/lustre-release.git]
/
build
/
nn-check.py
diff --git
a/build/nn-check.py
b/build/nn-check.py
index
12d28aa
..
d6bbf53
100755
(executable)
--- a/
build/nn-check.py
+++ b/
build/nn-check.py
@@
-58,16
+58,11
@@
def search_symbol(line, linenum):
if regex_match:
print_symbol = regex_match.group(0)
if regex_match:
print_symbol = regex_match.group(0)
- print '
WARNING
: Found %s at line %d:' \
+ print '
warning
: Found %s at line %d:' \
% (print_symbol, linenum)
print '%s' % line.rstrip()
bad_symbol_cnt += 1
% (print_symbol, linenum)
print '%s' % line.rstrip()
bad_symbol_cnt += 1
-# The main portion of the script
-print '================='
-print 'Starting nn-check'
-print '================='
-
# Open the nn-final-symbol-list.txt file and pull in the symbols to check into
# a dictionary object.
try:
# Open the nn-final-symbol-list.txt file and pull in the symbols to check into
# a dictionary object.
try:
@@
-95,6
+90,11
@@
except IOError:
print 'Check the path provided for the diff file.'
sys.exit(1)
print 'Check the path provided for the diff file.'
sys.exit(1)
+# The main portion of the script
+print '==================================================='
+print '%s: starting nn-check' % sys.argv[1]
+print '==================================================='
+
index = re.compile(r'^\+\+\+ b/(.*)')
plus = re.compile(r'^\+')
for line in f:
index = re.compile(r'^\+\+\+ b/(.*)')
plus = re.compile(r'^\+')
for line in f:
@@
-104,7
+104,7
@@
for line in f:
if index_match:
# Store the file name
filename=index_match.group(1)
if index_match:
# Store the file name
filename=index_match.group(1)
- print '
--> Checking File: %s
' % filename
+ print '
%s:
' % filename
else:
# Check if the line starts with a "+" character.
plus_match = plus.match(line)
else:
# Check if the line starts with a "+" character.
plus_match = plus.match(line)