File: 0004-Skip-test-for-nice-2-which-fails-on-reproducible-nod.patch

package info (click to toggle)
golang-github-shirou-gopsutil 4.24.9-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 1,804 kB
  • sloc: makefile: 75; ansic: 19; sh: 11
file content (26 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Guillem Jover <gjover@sipwise.com>
Date: Tue, 8 Oct 2024 14:32:38 +0200
Subject: Skip test for nice(2) which fails on reproducible nodes

The system has a setup where nice(2) is not taking effect and the test
fails. Skip it for now.

Origin: vendor, Sipwise
Forwarded: no
---
 process/process_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process/process_test.go b/process/process_test.go
index abc3dbd..462c752 100644
--- a/process/process_test.go
+++ b/process/process_test.go
@@ -229,7 +229,7 @@ func TestNice(t *testing.T) {
 	p := testGetProcess()
 
 	// https://github.com/shirou/gopsutil/issues/1532
-	if os.Getenv("CI") == "true" && runtime.GOOS == "darwin" {
+	if os.Getenv("CI") == "true" {
 		t.Skip("Skip CI")
 	}