[pygobject] Fix pep8/pyflakes invocation



commit 16462de3f025f14706ec23fa9b3653feb66ad57f
Author: Martin Pitt <martinpitt gnome org>
Date:   Mon Aug 20 15:24:10 2012 +0200

    Fix pep8/pyflakes invocation
    
    Fix regression from commit 1e056e4f4a: Do fail the tests if pyflakes/pep8
    exist, but fail.

 tests/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1d13630..e35a737 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -107,9 +107,9 @@ RUN_TESTS_ENV_VARS= \
 
 check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
 	@echo "  CHECK  Pyflakes"
-	@type pyflakes >/dev/null 2>&1 && pyflakes $(top_srcdir) || echo "skipped, pyflakes not installed"
+	@if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi
 	@echo "  CHECK  PEP8"
-	@type pep8 >/dev/null 2>&1 && pep8 --ignore=E501,E123,E124 --repeat --show-source $(top_srcdir) || echo "skipped, pep8 not installed"
+	@if type pep8 >/dev/null 2>&1; then pep8 --ignore=E501,E123,E124 --repeat --show-source $(top_srcdir); else echo "skipped, pep8 not installed"; fi
 	$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) -Wd -Werror::PendingDeprecationWarning -Werror::DeprecationWarning $(srcdir)/runtests.py
 
 check.gdb:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]