summaryrefslogtreecommitdiffstats
path: root/commands/hugo_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-21 09:35:15 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-08 13:26:17 +0200
commitd070bdf10f14d233288f7318a4e9f7555f070a65 (patch)
treefff8d59f98bdab3027bb45c4e10ca88594332872 /commands/hugo_test.go
parentb08193971a821fc27e549a73120c15e5e5186775 (diff)
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
Diffstat (limited to 'commands/hugo_test.go')
-rw-r--r--commands/hugo_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/hugo_test.go b/commands/hugo_test.go
index 4bead09f0..aca3de2fd 100644
--- a/commands/hugo_test.go
+++ b/commands/hugo_test.go
@@ -36,12 +36,10 @@ title = "Hugo Commands"
contentDir = "thisdoesnotexist"
`
- dir, clean, err := createSimpleTestSite(t, testSiteConfig{configTOML: cfgStr, contentDir: contentDir})
- c.Assert(err, qt.IsNil)
- defer clean()
+ dir := createSimpleTestSite(t, testSiteConfig{configTOML: cfgStr, contentDir: contentDir})
cmd.SetArgs([]string{"-s=" + dir, "-c=" + contentDir})
- _, err = cmd.ExecuteC()
+ _, err := cmd.ExecuteC()
c.Assert(err, qt.IsNil)
}