diff options
Diffstat (limited to 'models/db/unit_tests.go')
-rw-r--r-- | models/db/unit_tests.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/db/unit_tests.go b/models/db/unit_tests.go index d81610df6b..6f079c8676 100644 --- a/models/db/unit_tests.go +++ b/models/db/unit_tests.go @@ -54,7 +54,9 @@ func MainTest(m *testing.M, pathToGiteaRoot string, fixtureFiles ...string) { opts.Dir = fixturesDir } else { for _, f := range fixtureFiles { - opts.Files = append(opts.Files, filepath.Join(fixturesDir, f)) + if len(f) != 0 { + opts.Files = append(opts.Files, filepath.Join(fixturesDir, f)) + } } } |