Skip to content

Commit 4370018

Browse files
authored
TestKit backend output goes to stdout/stderr (#624)
From there, TestKit can pick it up and write it into logfiles if desired. neo4j-drivers/testkit#309
1 parent 3fc1b2c commit 4370018

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

testkit/backend.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import subprocess
2+
import sys
23

34
if __name__ == "__main__":
4-
err = open("/artifacts/backenderr.log", "w")
5-
out = open("/artifacts/backendout.log", "w")
65
subprocess.check_call(
7-
["python", "-m", "testkitbackend"], stdout=out, stderr=err)
6+
["python", "-m", "testkitbackend"],
7+
stdout=sys.stdout, stderr=sys.stderr
8+
)

0 commit comments

Comments
 (0)