[PATCH 1/3] Redirect pylint stderr to stdout
David Shea
dshea at redhat.com
Fri Nov 8 18:55:00 UTC 2013
This provides a lazy way of catching and failing on the "command not
found" output if pylint is not installed.
---
tests/pylint/runpylint.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/pylint/runpylint.sh b/tests/pylint/runpylint.sh
index a8e7857..b0f82b7 100755
--- a/tests/pylint/runpylint.sh
+++ b/tests/pylint/runpylint.sh
@@ -97,9 +97,10 @@ for i in $FILES; do
--load-plugins=intl \
$DISABLED_WARN_OPTIONS \
$DISABLED_ERR_OPTIONS \
- $NON_STRICT_OPTIONS $i | \
+ $NON_STRICT_OPTIONS $i 2>&1 | \
egrep -v "$(tr '\n' '|' < "$FALSE_POSITIVES") \
")"
+
# I0011 is the informational "Locally disabling ...." message
if [ -n "$(echo "$pylint_output" | fgrep -v '************* Module ' |\
grep -v '^I0011:')" ]; then
--
1.8.4.2
More information about the anaconda-patches
mailing list