mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
deps: Upgrade github.com/rogpeppe/go-internal v1.13.1 => v1.14.1
Closes #13449
This commit is contained in:
23
main_test.go
23
main_test.go
@@ -56,19 +56,16 @@ func TestUnfinished(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Exit(
|
||||
testscript.RunMain(m, map[string]func() int{
|
||||
// The main program.
|
||||
"hugo": func() int {
|
||||
err := commands.Execute(os.Args[1:])
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
},
|
||||
}),
|
||||
)
|
||||
testscript.Main(m, map[string]func(){
|
||||
// The main program.
|
||||
"hugo": func() {
|
||||
err := commands.Execute(os.Args[1:])
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
var commonTestScriptsParam = testscript.Params{
|
||||
|
Reference in New Issue
Block a user