Skip to content

Commit 21eb803

Browse files
committed
Change log root for integration tests to use the REPO_TEST_DIR
There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix go-gitea#18077 Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent d12d5b3 commit 21eb803

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

integrations/mssql.ini.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PROVIDER_CONFIG = integrations/gitea-integration-mssql/data/sessions
8282

8383
[log]
8484
MODE = test,file
85-
ROOT_PATH = mssql-log
85+
ROOT_PATH = {{REPO_TEST_DIR}}mssql-log
8686
ROUTER = ,
8787
XORM = file
8888
ENABLE_SSH_LOG = true

integrations/mysql.ini.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ PROVIDER_CONFIG = integrations/gitea-integration-mysql/data/sessions
101101

102102
[log]
103103
MODE = test,file
104-
ROOT_PATH = mysql-log
104+
ROOT_PATH = {{REPO_TEST_DIR}}mysql-log
105105
ROUTER = ,
106106
XORM = file
107107
ENABLE_SSH_LOG = true

integrations/mysql8.ini.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ PROVIDER_CONFIG = integrations/gitea-integration-mysql8/data/sessions
7979

8080
[log]
8181
MODE = test,file
82-
ROOT_PATH = mysql8-log
82+
ROOT_PATH = {{REPO_TEST_DIR}}mysql8-log
8383
ROUTER = ,
8484
XORM = file
8585
ENABLE_SSH_LOG = true

integrations/pgsql.ini.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ PROVIDER_CONFIG = integrations/gitea-integration-pgsql/data/sessions
8383

8484
[log]
8585
MODE = test,file
86-
ROOT_PATH = pgsql-log
86+
ROOT_PATH = {{REPO_TEST_DIR}}pgsql-log
8787
ROUTER = ,
8888
XORM = file
8989
ENABLE_SSH_LOG = true

integrations/sqlite.ini.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ PROVIDER_CONFIG = integrations/gitea-integration-sqlite/data/sessions
7878

7979
[log]
8080
MODE = test,file
81-
ROOT_PATH = sqlite-log
81+
ROOT_PATH = {{REPO_TEST_DIR}}sqlite-log
8282
ROUTER = ,
8383
XORM = file
8484
ENABLE_SSH_LOG = true

0 commit comments

Comments
 (0)