From c7e09efaa11f89d6291ab339cc6de6f4e980932a Mon Sep 17 00:00:00 2001
From: Ramana Raja <rraja@redhat.com>
Date: Wed, 23 Dec 2015 20:41:37 +0530
Subject: [PATCH] Fix bashate voting job

The bashate job, a voting job, has been failing for a while due to
two bugs. Fix the two bugs that require modifications to tox's
configuration file, tox.ini.

Bug #1527562
Remove inline comments after line escape that isn't understood
by tox's ini parser.
This is due to the backward incompatible fix for,
https://bitbucket.org/hpk42/tox/issues/181

Bug #1554019
Ignore .xml files that do not need to comply with bashate.

Closes-Bug: #1527562
Closes-Bug: #1554019

Change-Id: Id11275d5d15e30d2558a475a4877e6d71bdc6726
---
 tox.ini | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tox.ini b/tox.ini
index 20ecbaa..5669178 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,15 +11,16 @@ install_command = pip install {opts} {packages}
 deps = bashate
 whitelist_externals = bash
 commands = bash -c "find {toxinidir}          \
-         -not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
-         -not \( -type d -name doc -prune \)  \ # skip documentation
-         -type f                              \ # only files
-         -not -name \*~                       \ # skip editors, readme, etc
+         -not \( -type d -name .?\* -prune \) \
+         -not \( -type d -name doc -prune \)  \
+         -type f                              \
+         -not -name \*~                       \
          -not -name \*.md                     \
+         -not -name \*.xml                    \
          \(                                   \
           -name \*.sh -or                     \
           -name \*rc -or                      \
           -name functions\* -or               \
-          -wholename \*/lib/\*                \ # /lib files are shell, but
-         \)                                   \ #   have no extension
+          -wholename \*/lib/\*                \
+         \)                                   \
          -print0 | xargs -0 bashate -v"