dirsrvtests/suites/basic/basic_test.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 7ea4487f81aec3aef17c82d20f6067fa36c1cf7c
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Thu Aug 13 16:44:19 2015 -0400
Ticket 48248 - Use LDIF building function in basic test suite
Description: Use the new LDIF building function that properly sets
ownership and permissions of new ldif file
https://fedorahosted.org/389/ticket/48248
(cherry picked from commit dfb1c315d009e7a4c6798a7ae05f139b77d506dc)
diff --git a/dirsrvtests/suites/basic/basic_test.py
b/dirsrvtests/suites/basic/basic_test.py
index deeca59..d35f7d9 100644
--- a/dirsrvtests/suites/basic/basic_test.py
+++ b/dirsrvtests/suites/basic/basic_test.py
@@ -3,7 +3,7 @@
# All rights reserved.
#
# License: GPL (version 3 or any later version).
-# See LICENSE for details.
+# See LICENSE for details.
# --- END COPYRIGHT BLOCK ---
#
import os
@@ -225,8 +225,8 @@ def test_basic_import_export(topology):
# Generate a test ldif (50k entries)
import_ldif = tmp_dir + '/basic_import.ldif'
try:
- os.system('dbgen.pl -n 50000 -o ' + import_ldif)
- except OSError, e:
+ topology.standalone.buildLDIF(50000, import_ldif)
+ except OSError as e:
log.fatal('test_basic_import_export: failed to create test ldif, error: %s -
%s' % (e.errno, e.strerror))
assert False