Flake8 errors get suppressed when run_tests.sh is used
Bug #1747420 reported by
Sourav Banerjee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quark |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This task intends to fix a defect where flake8 errors fail to show when tests are run using run_tests.sh . This file is used by Jenkins to run tests when a PR is raised, which fail if there are flake8 errors without showing any flake8 related errors in the job log.
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/540896 /git.openstack. org/cgit/ openstack/ quark/commit/ ?id=38528ca4d6c 440887940000ac5 27f23f03dcf02e
Committed: https:/
Submitter: Zuul
Branch: master
commit 38528ca4d6c4408 87940000ac527f2 3f03dcf02e
Author: Sourav Banerjee <email address hidden>
Date: Mon Oct 30 20:02:45 2017 +0530
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: I040873b859cca7 c0500bd7d600d8d e6121cc70a5
Closes-Bug: #1747420