dirsrvtests/suites/basic/basic_test.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
New commits:
commit dc2292408a571c488a78ded4f1c37ff5e445625c
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)
Conflicts:
dirsrvtests/suites/basic/basic_test.py
diff --git a/dirsrvtests/suites/basic/basic_test.py
b/dirsrvtests/suites/basic/basic_test.py
index 18d079d..d35f7d9 100644
--- a/dirsrvtests/suites/basic/basic_test.py
+++ b/dirsrvtests/suites/basic/basic_test.py
@@ -1,3 +1,11 @@
+# --- BEGIN COPYRIGHT BLOCK ---
+# Copyright (C) 2015 Red Hat, Inc.
+# All rights reserved.
+#
+# License: GPL (version 3 or any later version).
+# See LICENSE for details.
+# --- END COPYRIGHT BLOCK ---
+#
import os
import sys
import time
@@ -217,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