Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
skip non-linux OS
  • Loading branch information
sreya committed Jun 16, 2022
commit 8f2fa52908b45ec0f024d676e7ada17fd151b0f2
5 changes: 5 additions & 0 deletions agent/reaper/reaper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package reaper_test

import (
"os/exec"
"runtime"
"testing"
"time"

Expand All @@ -14,6 +15,10 @@ import (
func TestReap(t *testing.T) {
t.Parallel()

if runtime.GOOS != "linux" {
t.Skipf("Skipping non-Linux OS %q", runtime.GOOS)
}

// Because we're forkexecing these tests will try to run twice...
if reaper.IsChild() {
t.Skip("I'm a child!")
Expand Down