From abbad122bb48cb1d8b650158a3e6180dbe5ee9e5 Mon Sep 17 00:00:00 2001 From: Tiago Natel Date: Mon, 11 Nov 2019 14:35:29 +0000 Subject: Tests: added support for testing "user" and "group". --- test/unit/applications/lang/go.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/unit/applications/lang/go.py') diff --git a/test/unit/applications/lang/go.py b/test/unit/applications/lang/go.py index 18345828..b1da8071 100644 --- a/test/unit/applications/lang/go.py +++ b/test/unit/applications/lang/go.py @@ -44,7 +44,7 @@ class TestApplicationGo(TestApplicationProto): return process - def load(self, script, name='app'): + def load(self, script, name='app', **kwargs): self.prepare_env(script, name) self._load_conf( @@ -60,5 +60,6 @@ class TestApplicationGo(TestApplicationProto): "executable": self.testdir + "/go/" + name, } }, - } + }, + **kwargs ) -- cgit From a427ecd4c547958079cce2dae13060b2d60aa4d4 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 24 Dec 2019 17:59:48 +0300 Subject: Go: installing go module for tests into build directory. --- test/unit/applications/lang/go.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/applications/lang/go.py') diff --git a/test/unit/applications/lang/go.py b/test/unit/applications/lang/go.py index b1da8071..7212a95c 100644 --- a/test/unit/applications/lang/go.py +++ b/test/unit/applications/lang/go.py @@ -23,7 +23,7 @@ class TestApplicationGo(TestApplicationProto): os.mkdir(self.testdir + '/go') env = os.environ.copy() - env['GOPATH'] = self.pardir + '/go' + env['GOPATH'] = self.pardir + '/build/go' try: process = Popen( -- cgit