File: Mark-test-requiring-root-as-such.patch

package info (click to toggle)
keyutils 1.6.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: sh: 5,429; ansic: 4,813; makefile: 278
file content (41 lines) | stat: -rw-r--r-- 1,112 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Christian Kastner <ckk@kvr.at>
Date: Sun, 19 Jun 2022 21:08:58 +0200
Subject: Mark test requiring root as such

---
 tests/features/builtin_trusted/runtest.sh | 5 +++++
 tests/features/limits/runtest.sh          | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/tests/features/builtin_trusted/runtest.sh b/tests/features/builtin_trusted/runtest.sh
index 27910b5..f7d20ca 100644
--- a/tests/features/builtin_trusted/runtest.sh
+++ b/tests/features/builtin_trusted/runtest.sh
@@ -3,6 +3,11 @@
 . ../../prepare.inc.sh
 . ../../toolbox.inc.sh
 
+if [ $skip_root_required = 1 ]
+then
+    toolbox_skip_test $TEST "SKIPPING TEST REQUIRING ROOT"
+    exit 0
+fi
 
 # ---- do the actual testing ----
 
diff --git a/tests/features/limits/runtest.sh b/tests/features/limits/runtest.sh
index 3af2f5a..9a728b0 100644
--- a/tests/features/limits/runtest.sh
+++ b/tests/features/limits/runtest.sh
@@ -3,6 +3,11 @@
 . ../../prepare.inc.sh
 . ../../toolbox.inc.sh
 
+if [ $skip_root_required = 1 ]
+then
+	toolbox_skip_test $TEST "SKIPPING TEST REQUIRING ROOT"
+	exit 0
+fi
 
 # ---- do the actual testing ----