Merge "Improve gerrit checks messages"

This commit is contained in:
Jenkins 2016-09-14 07:23:00 +00:00 committed by Gerrit Code Review
commit 5dd4dd54ab
2 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,6 @@ function check_team_acl {
local failure=0
for config in $configs_list; do
echo "Checking $config file..."
$OLDPWD/tools/normalize_acl.py $config all > $TMPDIR/normalized
if ! diff -u $config $TMPDIR/normalized >>config_failures;

View File

@ -129,9 +129,9 @@ def main():
# sort of job-description (e.g. "foo-devstack-bar") or
# a url ("foo.openstack.org")
if re.search(r'(?<![-.])\b%s\b' % word, description):
print("ERROR: description '%s': contains wrong word, "
"it should be '%s'" %
(description, should_be))
print("ERROR: project %s, description '%s': "
"contains wrong word '%s', it should be '%s'" %
(name, description, word, should_be))
found_errors += 1
if not description and repo_group in DESCRIPTION_REQUIRED: