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
10 changes: 10 additions & 0 deletions services/nvpair-engine-manager/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,16 @@ func TestUninstallTerminatesRunningInstance(t *testing.T) {
t.Cleanup(func() { _ = cmd.Process.Kill() })
waitPortServing(t, port)

// Reclaiming a managed orphan needs the listener's executable path.
// procImage resolves it through /proc, so on a platform without /proc the
// image comes back empty, isOurEngineImage declines, and Uninstall refuses
// by design; see the procImage doc comment in proc_unix.go. Check the
// precondition rather than the platform, so this test starts running again
// on its own if the image ever becomes resolvable there.
if _, image, ok := pidOnPort(port); ok && image == "" {
t.Skipf("listener image is unresolvable on %s, so reclaim declines by design", runtime.GOOS)
}

m := testEngineManifest(bin)
key := runtime.GOOS + "/" + runtime.GOARCH
p := m.Platforms[key]
Expand Down