diff options
author | singuliere <35190819+singuliere@users.noreply.github.com> | 2022-01-01 04:31:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 04:31:24 +0100 |
commit | 1a4e2bfcd115ada6cb859cb87964c227e0e082b9 (patch) | |
tree | beaa54c2bb48b2f29aee191cde0080d5e9f0f302 /models | |
parent | fb2dc956233bae9f1136436e015ebd8190c0113c (diff) | |
download | gitea-1a4e2bfcd115ada6cb859cb87964c227e0e082b9.tar.gz gitea-1a4e2bfcd115ada6cb859cb87964c227e0e082b9.zip |
tests: s/GITEA_UNIT_TESTS_VERBOSE/GITEA_UNIT_TESTS_LOG_SQL/ (#18142)
The GITEA_UNIT_TESTS_VERBOSE variable is an undocumented variable
introduced in 2017 (see 1028ef2defd94a64f2433b07fe5d93681864cebb)
whose sole purpose has been to log SQL statements when running unit
tests.
It is renamed for clarity and a warning is displayed for backward
compatibility for people and scripts that know about it.
The documentation is updated to reflect this change.
Diffstat (limited to 'models')
-rw-r--r-- | models/unittest/testdb.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index c798dbefb1..6f3a36ed21 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -152,7 +152,7 @@ func CreateTestEngine(opts FixturesOptions) error { if err = db.SyncAllTables(); err != nil { return err } - switch os.Getenv("GITEA_UNIT_TESTS_VERBOSE") { + switch os.Getenv("GITEA_UNIT_TESTS_LOG_SQL") { case "true", "1": x.ShowSQL(true) } |