booth/0007-test-fix-failing-test_a_few_trailing_whitespaces.patch
Jan Pokorný b4585aa546
1.0-2.eb4256a.git - update a subset of out-of-tree patches
...per https://github.com/ClusterLabs/booth/pull/22#issuecomment-216936987

- pre-inclusion cleanups in the spec (apply systemd scriptlet operations
  with booth-arbitrator, avoid overloading file implicitly considered %%doc
  as %%license)
  Resolves: rhbz#1314865
  Related: rhbz#1333509

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2016-05-06 19:53:16 +02:00

28 lines
1.0 KiB
Diff

From e6846aa10a64fdfb7f6c2b3a3dc63ccebb91a45d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
Date: Wed, 27 Apr 2016 12:12:08 +0200
Subject: [PATCH] test: fix failing test_a_few_trailing_whitespaces
Original assertion tested the exact opposite to what is expected
(when daemon gets killed, lock/pid file should no longer exist).
---
test/serverenv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/serverenv.py b/test/serverenv.py
index bbe7ff3..2e662cb 100755
--- a/test/serverenv.py
+++ b/test/serverenv.py
@@ -143,7 +143,7 @@ def check_daemon_handling(self, runner, expected_daemon):
self.kill_pid(int(daemon_pid))
time.sleep(1)
daemon_pid = self.get_daemon_pid_from_lock_file(runner.lock_file)
- self.assertTrue(daemon_pid is not None,
+ self.assertTrue(daemon_pid is None,
'bnc#749763: lock file should vanish after daemon is killed')
def get_daemon_pid_from_lock_file(self, lock_file):
--
2.4.11