Tests: refactored working with processes.

This commit is contained in:
Andrei Zeliankou
2021-11-15 12:13:54 +00:00
parent 28eaf9d378
commit ae03585238
8 changed files with 39 additions and 39 deletions

View File

@@ -40,13 +40,12 @@ class TestApplicationGo(TestApplicationProto):
print("\n$ GOPATH=" + env['GOPATH'] + " " + " ".join(args))
try:
process = subprocess.Popen(args, env=env)
process.communicate()
process = subprocess.run(args, env=env)
except KeyboardInterrupt:
raise
except:
except subprocess.CalledProcessError:
return None
return process