naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From 225a458ec4c1bee97d0cee13895977614fd8cc16 Mon Sep 17 00:00:00 2001
923a60
From: David Tardon <dtardon@redhat.com>
923a60
Date: Wed, 10 Jul 2019 09:48:51 +0200
923a60
Subject: [PATCH] revert local changes made during backport of the test
923a60
923a60
Related: #1726785
923a60
---
923a60
 test/TEST-20-MAINPIDGAMES/testsuite.sh | 6 ++----
923a60
 1 file changed, 2 insertions(+), 4 deletions(-)
923a60
923a60
diff --git a/test/TEST-20-MAINPIDGAMES/testsuite.sh b/test/TEST-20-MAINPIDGAMES/testsuite.sh
923a60
index d4ad63865c..8b0b664652 100755
923a60
--- a/test/TEST-20-MAINPIDGAMES/testsuite.sh
923a60
+++ b/test/TEST-20-MAINPIDGAMES/testsuite.sh
923a60
@@ -175,12 +175,10 @@ ExecStart=/dev/shm/mainpid3.sh
923a60
 EOF
923a60
 
923a60
 systemctl daemon-reload
923a60
-systemctl start mainpidsh3.service
923a60
+! systemctl start mainpidsh3.service
923a60
 
923a60
 # Test that this failed due to timeout, and not some other error
923a60
-# test `systemctl_show_value -p Result mainpidsh3.service` = timeout
923a60
-# Just check that there is no MainPID => the pid file was ignored
923a60
-test `systemctl_show_value -p MainPID mainpidsh3.service` -eq 0
923a60
+test `systemctl_show_value -p Result mainpidsh3.service` = timeout
923a60
 
923a60
 systemd-analyze set-log-level info
923a60