Skip to content

Commit 6cd2169

Browse files
TestKit backend output goes to stdout/stderr (#1084) (#1138) (#1144)
From there, TestKit can pick it up and write it into logfiles if desired. neo4j-drivers/testkit#309 Co-authored-by: Robsdedude <[email protected]> Co-authored-by: Robsdedude <[email protected]>
1 parent 403e8bb commit 6cd2169

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testkit/backend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
Assumes driver and backend has been built.
44
Responsible for starting the test backend.
55
"""
6-
import os, subprocess
6+
import os
7+
import subprocess
8+
import sys
79

810

911
if __name__ == "__main__":
10-
err = open("/artifacts/backenderr.log", "w")
11-
out = open("/artifacts/backendout.log", "w")
1212
subprocess.check_call(
13-
["java", "-jar", "testkit-backend/target/testkit-backend.jar"], stdout=out, stderr=err)
13+
["java", "-jar", "testkit-backend/target/testkit-backend.jar"], stdout=sys.stdout, stderr=sys.stderr)
1414

0 commit comments

Comments
 (0)