Skip to contentSkip to conversation

syslog-lib.sh: Produce TCONF instead of TBROK for journald

RFC PATCH New Cyril Hrubis 2 participants 3 messages May 2, 2017 – May 5, 2017

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 syslog-lib.sh: Produce TCONF instead of TBROK for journald

If there is no traditional syslog daemon installed these testcaess exit with TBROK which is not correct since these tests are simply not applicable if no syslog daemon is installed.

---
 testcases/kernel/syscalls/syslog/syslog-lib.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/syscalls/syslog/syslog-lib.sh +2 -2
index e166d3a45..35c13daf7 100755
@@ -86,8 +86,8 @@ EOF
 )
 		fi
 	else
-		tst_resm TBROK "Couldn't find syslogd, syslog-ng or rsyslogd"
-		cleanup 1
+		tst_resm TCONF "Couldn't find syslogd, syslog-ng or rsyslogd"
+		cleanup 32
 	fi
 
 	# Back up configuration file
Signature · 1 line
2.12.2
#1 lore raw

RFC PATCH 1/1 syslog-lib.sh: Produce TCONF instead of TBROK for journald

----- Original Message -----

Quoted 26 lines

If there is no traditional syslog daemon installed these testcaess exit with TBROK which is not correct since these tests are simply not applicable if no syslog daemon is installed.

---
 testcases/kernel/syscalls/syslog/syslog-lib.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/syscalls/syslog/syslog-lib.sh +2 -3
index e166d3a45..35c13daf7 100755
@@ -86,8 +86,8 @@ EOF
 )
 		fi
 	else
-		tst_resm TBROK "Couldn't find syslogd, syslog-ng or rsyslogd"
-		cleanup 1
+		tst_resm TCONF "Couldn't find syslogd, syslog-ng or rsyslogd"
+		cleanup 32
 	fi
 
 	# Back up configuration file
--
Quoted 1 line

2.12.2

ACK

Regards,
Jan

#2 lore raw

RFC PATCH 1/1 syslog-lib.sh: Produce TCONF instead of TBROK for journald

Hi!

Quoted 1 line

ACK

Pushed.

Signature · 2 lines
Cyril Hrubis
[email protected]