From 8154fd295ddebca5ec92f6512ec80cb92966fa8b Mon Sep 17 00:00:00 2001 From: Michal Nowikowski Date: Sat, 20 Mar 2021 20:20:27 +0100 Subject: [PATCH] fixed parsing ng lint output --- agent/kraken/agent/kraken_nglint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/kraken/agent/kraken_nglint.py b/agent/kraken/agent/kraken_nglint.py index 6da788c4..46f3db33 100644 --- a/agent/kraken/agent/kraken_nglint.py +++ b/agent/kraken/agent/kraken_nglint.py @@ -15,6 +15,7 @@ import os import json import logging +import subprocess from . import utils from . import tool @@ -67,7 +68,7 @@ def run_analysis(step, report_issue=None): repo_parent = os.path.abspath(cwd) + os.path.sep cmd = 'npx ng lint --format json --force' - ret, out = utils.execute(cmd, cwd=cwd, out_prefix='', timeout=180) + ret, out = utils.execute(cmd, cwd=cwd, out_prefix='', timeout=180, stderr=subprocess.DEVNULL) if ret != 0: log.error('ng list exited with non-zero retcode: %s', ret) return ret, 'ng list exited with non-zero retcode'