Skip to content

Commit

Permalink
init gitea-repositories-meta
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Apr 8, 2020
1 parent f2e0536 commit 39e12ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integrations/migration-test/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"io/ioutil"
"os"
"path"
"path/filepath"
"regexp"
"sort"
"strings"
Expand All @@ -25,6 +26,7 @@ import (
"code.gitea.io/gitea/modules/setting"

"github.com/stretchr/testify/assert"
"github.com/unknwon/com"
"xorm.io/xorm"
)

Expand Down Expand Up @@ -54,6 +56,11 @@ func initMigrationTest(t *testing.T) func() {
}

setting.NewContext()

assert.True(t, len(setting.RepoRootPath) != 0)
assert.NoError(t, os.RemoveAll(setting.RepoRootPath))
assert.NoError(t, com.CopyDir(path.Join(filepath.Dir(setting.AppPath), "integrations/gitea-repositories-meta"), setting.RepoRootPath))

setting.CheckLFSVersion()
setting.InitDBConfig()
setting.NewLogServices(true)
Expand Down

0 comments on commit 39e12ba

Please sign in to comment.