Skip to content
Merged
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
6 changes: 6 additions & 0 deletions pkg/osutil/osutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -153,6 +154,11 @@ func TestReadWriteJSON(t *testing.T) {
}

func TestDiskUsage(t *testing.T) {
if runtime.GOOS != "linux" {
// The test uses some hardcoded numbers for disk usage,
// it's hard to get it working on all possible OSes.
t.Skip("skipping on non-linux")
}
dir := t.TempDir()
var currentUsage uint64
expectUsage := func(minIncrease, maxIncrease uint64) {
Expand Down
Loading