]> source.dussan.org Git - gitea.git/commit
Ensure git tag tests and others create test repos in tmpdir (#18447) (#18767)
authorzeripath <art27@cantab.net>
Tue, 15 Feb 2022 11:16:38 +0000 (11:16 +0000)
committerGitHub <noreply@github.com>
Tue, 15 Feb 2022 11:16:38 +0000 (19:16 +0800)
commitc876124efe64fcef76accbd36e992121ee821175
tree2247abee44da27d803c6a1237b28df82e25bb534
parent3a78ac4b328a2a1c61f42b79b7cd9ff9ba12cc6d
Ensure git tag tests and others create test repos in tmpdir (#18447) (#18767)

Backport #18447

* Ensure git tag tests and other create test repos in tmpdir

There are a few places where tests appear to reuse testing repos which
causes random CI failures.

This PR simply changes these tests to ensure that cloning always happens
into new temporary directories.

Fix #18444

* 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 #18077

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
integrations/mssql.ini.tmpl
integrations/mysql.ini.tmpl
integrations/mysql8.ini.tmpl
integrations/pgsql.ini.tmpl
integrations/sqlite.ini.tmpl
modules/git/commit_info_test.go
modules/git/repo_compare_test.go
modules/git/repo_tag_test.go