X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=checks.py;h=cde601a6917c22b719aa33299f593451ae95c896;hb=eb94fa9a5d08f532cb7cdd89253e795ba4bc48ef;hp=70bdcd299e1125389357259490d6de3163452524;hpb=5ff7ed0cf3ac9e8110579ee4f0f711e30fb2511e;p=vvp%2Fvalidation-scripts.git diff --git a/checks.py b/checks.py index 70bdcd2..cde601a 100644 --- a/checks.py +++ b/checks.py @@ -167,7 +167,12 @@ 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 []