diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-07 01:03:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-07 01:03:49 +0900 |
| commit | 54da6ce03d33f6503a6753813de825f3d0447903 (patch) | |
| tree | c9bff52af48d7f8d74ec7b24ca24854e4be12b30 /internal/pkg/testdata/main.go | |
| parent | 3a21ba1bcadd33a32a011329362d901374716626 (diff) | |
internal/pkg: respect mount order for overlay temp
Setting it up after everything else prevents covering files in /tmp.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/testdata/main.go')
| -rw-r--r-- | internal/pkg/testdata/main.go | 16 |
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() |
