Skip to content

Commit d9e2f95

Browse files
committed
test: Shutdown cleanly when building rootfs
Signed-off-by: Lewis Marshall <lewis@lmars.net>
1 parent 2b52b16 commit d9e2f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ func main() {
8787
return
8888
}
8989
if args.BuildRootFS {
90+
testCluster.Shutdown()
9091
fmt.Println("Built Flynn in rootfs:", rootFS)
91-
os.Exit(0)
92+
return
9293
} else {
9394
defer os.RemoveAll(rootFS)
9495
}

0 commit comments

Comments
 (0)