summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang/go.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-12-12 16:24:54 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2022-12-12 16:24:54 +0000
commit648e91a623d3822e8ab4780b452da211ea3ba257 (patch)
treee1a91306c321c93844b0411a10ac3bf55e8410af /test/unit/applications/lang/go.py
parentf67a01b88fd7c7057767e18a3dd06c24e94c8aa8 (diff)
downloadunit-648e91a623d3822e8ab4780b452da211ea3ba257.tar.gz
unit-648e91a623d3822e8ab4780b452da211ea3ba257.tar.bz2
Tests: pretty output.
Hide expected alerts by default. Silence succesfull "go build" information.
Diffstat (limited to 'test/unit/applications/lang/go.py')
-rw-r--r--test/unit/applications/lang/go.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/applications/lang/go.py b/test/unit/applications/lang/go.py
index 3db955f3..14e76362 100644
--- a/test/unit/applications/lang/go.py
+++ b/test/unit/applications/lang/go.py
@@ -67,7 +67,9 @@ replace unit.nginx.org/go => {replace_path}
print("\n$ GOPATH=" + env['GOPATH'] + " " + " ".join(args))
try:
- process = subprocess.run(args, env=env, cwd=temp_dir)
+ output = subprocess.check_output(
+ args, env=env, cwd=temp_dir, stderr=subprocess.STDOUT
+ )
except KeyboardInterrupt:
raise
@@ -75,7 +77,7 @@ replace unit.nginx.org/go => {replace_path}
except subprocess.CalledProcessError:
return None
- return process
+ return output
def load(self, script, name='app', **kwargs):
static_build = False