File: 0003-tests.sh-skip-non-root-only-spool-baduser-tests.diff

package info (click to toggle)
bcron 0.11-19
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 760 kB
  • sloc: sh: 3,138; ansic: 2,416; makefile: 32
file content (62 lines) | stat: -rw-r--r-- 1,794 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From: Gerrit Pape <pape@smarden.org>
Date: Tue, 8 May 2007 09:02:18 +0000
Subject: [PATCH] tests.sh: skip non-root-only spool-*-baduser tests.

---
 tests.sh | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/tests.sh b/tests.sh
index 2a0e149..c4f3990 100644
--- a/tests.sh
+++ b/tests.sh
@@ -624,14 +624,14 @@ END_OF_TEST_RESULTS
 
 ##### Test tests/spool-submit-baduser #####
 
-runtest() {
-printf "Sroot\\0* * * * * echo hello\\n" | spoolcmd
-rm -f $CRONTABS/root
-}
-vecho "Running test tests/spool-submit-baduser "
-run_compare_test tests/spool-submit-baduser  <<END_OF_TEST_RESULTS
-37:DUsername does not match invoking UID,
-END_OF_TEST_RESULTS
+#runtest() {
+#printf "Sroot\\0* * * * * echo hello\\n" | spoolcmd
+#rm -f $CRONTABS/root
+#}
+#vecho "Running test tests/spool-submit-baduser "
+#run_compare_test tests/spool-submit-baduser  <<END_OF_TEST_RESULTS
+#37:DUsername does not match invoking UID,
+#END_OF_TEST_RESULTS
 
 
 ##### Test tests/exec-simple #####
@@ -682,16 +682,16 @@ END_OF_TEST_RESULTS
 
 ##### Test tests/spool-delete-baduser #####
 
-runtest() {
-touch $CRONTABS/root
-printf "Rroot" | spoolcmd
-test -e $CRONTABS/root && echo File still exists.
-}
-vecho "Running test tests/spool-delete-baduser "
-run_compare_test tests/spool-delete-baduser  <<END_OF_TEST_RESULTS
-37:DUsername does not match invoking UID,
-File still exists.
-END_OF_TEST_RESULTS
+# runtest() {
+# touch $CRONTABS/root
+# printf "Rroot" | spoolcmd
+# test -e $CRONTABS/root && echo File still exists.
+# }
+# vecho "Running test tests/spool-delete-baduser "
+# run_compare_test tests/spool-delete-baduser  <<END_OF_TEST_RESULTS
+# 37:DUsername does not match invoking UID,
+# File still exists.
+# END_OF_TEST_RESULTS
 
 
 rm -rf $tmp