// Copyright 2020 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packagelfsimport("flag""fmt""os""testing"log"unknwon.dev/clog/v2""gogs.io/gogs/internal/testutil")funcTestMain(m*testing.M){flag.Parse()if!testing.Verbose(){// Remove the primary logger and register a noop logger.log.Remove(log.DefaultConsoleName)err:=log.New("noop",testutil.InitNoopLogger)iferr!=nil{fmt.Println(err)os.Exit(1)}}os.Exit(m.Run())}