Skip to content

Commit 1aeb35b

Browse files
committed
Run a unit test from a var directory
It seems natural to set cwd to a var directory for a unit test to, say, allow it to produce log files that will be under a gitignored directory. We already run servers for other test suite types (tarantool and app) in a var directory.
1 parent d64e7e6 commit 1aeb35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/unittest_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, *args, **kwargs):
1414
def execute(self, server):
1515
server.current_test = self
1616
execs = server.prepare_args()
17-
proc = Popen(execs, stdout=PIPE, stderr=STDOUT)
17+
proc = Popen(execs, cwd=server.vardir, stdout=PIPE, stderr=STDOUT)
1818
sys.stdout.write(proc.communicate()[0])
1919

2020
class UnittestServer(Server):

0 commit comments

Comments
 (0)