diff --git a/LibOS/shim/test/ltp/contrib/conf_lint.py b/LibOS/shim/test/ltp/contrib/conf_lint.py index 511a52be..2a377e88 100755 --- a/LibOS/shim/test/ltp/contrib/conf_lint.py +++ b/LibOS/shim/test/ltp/contrib/conf_lint.py @@ -42,6 +42,10 @@ def validate_section_order(name, sections): mistakes = 0 prev = '' for lineno, section in sections: + if section == prev: + print('{name}:{lineno}: duplicate section: [{section}]'.format( + name=name, lineno=lineno, section=section)) + mistakes += 1 if section < prev: print('{name}:{lineno}: bad order: [{section}] (after [{prev}])'.format( name=name, lineno=lineno, section=section, prev=prev))