quark/run_tests.sh
Sourav Banerjee 38528ca4d6 Prevent flake8 errors from getting suppressed
Flake8 errors, if present, do not show up if run_tests.sh is used. It is
used by Jenkins on creation of a pull request, upon which the tests fail
without flake8 specific information showing up in the log.
Adding PYTHONUNBUFFERED=1 before the flake8 command in run_tests.sh solves
this problem.

Change-Id: I040873b859cca7c0500bd7d600d8de6121cc70a5
Closes-Bug: #1747420
2018-02-05 21:11:02 +05:30

9 lines
324 B
Bash
Executable File

#!/bin/bash
# TODO: make tox install the correct version of neutron so we can run tox
# instead of these commands manually
nosetests --exclude=mysql
nosetests --where=quark/tests/functional/mysql
nosetests --exclude=mysql --cover-package=quark --cover-erase
PYTHONUNBUFFERED=1 flake8 --show-source --builtins=_ quark