aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/testdata/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/testdata/main.go')
-rw-r--r--internal/pkg/testdata/main.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/internal/pkg/testdata/main.go b/internal/pkg/testdata/main.go
index 4f3d047e..6a884a3a 100644
--- a/internal/pkg/testdata/main.go
+++ b/internal/pkg/testdata/main.go
@@ -144,22 +144,24 @@ func main() {
}
}
+ if overlayTmp {
+ next() // testtool artifact
+ if m.Root != "/" || m.Target != "/tmp" ||
+ m.Source != "overlay" || m.FsType != "overlay" {
+ log.Fatal("unexpected temp mount entry")
+ }
+ }
+
next()
if path.Base(m.Root) != ident || m.Target != "/work" {
log.Fatal("unexpected work mount entry")
}
- next()
if !overlayTmp {
+ next()
if path.Base(m.Root) != ident || m.Target != "/tmp" {
log.Fatal("unexpected temp mount entry")
}
- } else {
- // testtool artifact
- if m.Root != "/" || m.Target != "/tmp" ||
- m.Source != "overlay" || m.FsType != "overlay" {
- log.Fatal("unexpected temp mount entry")
- }
}
next()