X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=checks.py;fp=checks.py;h=6f508eb7d970be01c6767705a6568b28897ccbd5;hb=da26f1709fa5406ee3efebdb82d2c43fcf0122a1;hp=70bdcd299e1125389357259490d6de3163452524;hpb=e97e5f898a2bfeac786b9022ed151665be435376;p=vvp%2Fvalidation-scripts.git diff --git a/checks.py b/checks.py index 70bdcd2..6f508eb 100644 --- a/checks.py +++ b/checks.py @@ -167,7 +167,9 @@ def check_non_testable_requirements_are_not_mapped(): def check_flake8_passes(): - result = subprocess.run(["flake8", "."], encoding="utf-8", capture_output=True) + result = subprocess.run(["flake8", "."], encoding="utf-8", + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) msgs = result.stdout.split("\n") if result.returncode != 0 else [] return ["flake8 errors detected:"] + [f" {e}" for e in msgs] if msgs else []