anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0748-revert-local-changes-made-during-backport-of-the-tes.patch

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