Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func setupContainer(t *testing.T, dut *ondatra.DUTDevice) func() {
TarPath: containerTarPath(t),
Network: "host",
PollForRunningState: true,
RemoveExistingImage: true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoding RemoveExistingImage: true ensures a clean state but may increase test time by forcing a re-push on every run. Consider making this configurable via a flag (similar to container_tar) to allow for faster local development when the image is already present on the DUT.

}
_, cleanup := containerztest.Setup(ctx, t, dut, opts)
return cleanup
Expand Down
Loading