dirsrvtests/tickets/ticket48226_test.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit e8ce19a987fce434de0d1e93bda4d5fad5b2f7ad
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Wed Sep 9 18:27:31 2015 -0700
Ticket #48226 - CI test: fixing test case for ticket 48226
Description: commit f5d24450477f8341261c3e5cb5c54ec1ab83328f had an
issue in valgrind check. The script calls valgrind_check_leak twice,
in which the server is stopped. Before calling the second valgrind_
check_leak, the server (master 2) has to be restarted. Also, "Invalid"
is reported after another server (master 1) is restarted. To capture
it, start master 1 before calling the second valgrind_check_leak.
diff --git a/dirsrvtests/tickets/ticket48226_test.py
b/dirsrvtests/tickets/ticket48226_test.py
index 87814e7..a7bafba 100644
--- a/dirsrvtests/tickets/ticket48226_test.py
+++ b/dirsrvtests/tickets/ticket48226_test.py
@@ -205,6 +205,13 @@ def test_ticket11111_1(topology):
else:
log.info('test_csnset_dup: No leak is present!')
+ topology.master2.start(10)
+
+ # Disnable valgrind
+ valgrind_disable(sbin_dir)
+
+ topology.master1.start(10)
+
if valgrind_check_leak(topology.master2, 'Invalid'):
log.info('Valgrind reported invalid!')
else:
@@ -213,11 +220,6 @@ def test_ticket11111_1(topology):
#log.info("You can attach yourself")
#time.sleep(60)
- # Enable valgrind
- valgrind_disable(sbin_dir)
-
- topology.master1.start(10)
-
def test_ticket11111_final(topology):
topology.master1.delete()
--
389 commits mailing list
389-commits@%(host_name)s
http://lists.fedoraproject.org/postorius/389-commits@lists.fedoraproject.org