dirsrvtests/tickets/ticket47664_test.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit f4814bd3330b758296ad02c560d22ea16bf710a2
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Aug 7 18:07:53 2014 -0700
Ticket 47664 - CI test: add test case for ticket 47664
Description: DS cmd such as dbgen.pl needs to set fullpath.
diff --git a/dirsrvtests/tickets/ticket47664_test.py
b/dirsrvtests/tickets/ticket47664_test.py
index f374302..eaad5dc 100644
--- a/dirsrvtests/tickets/ticket47664_test.py
+++ b/dirsrvtests/tickets/ticket47664_test.py
@@ -156,8 +156,13 @@ def test_ticket47664_run(topology):
MYLDIF = '%s%s' % (mytmp, _MYLDIF)
os.system('ls %s' % MYLDIF)
os.system('rm -f %s' % MYLDIF)
- os.system('dbgen.pl -s %s -o %s -n 14' % (MYSUFFIX, MYLDIF))
-
+ if hasattr(topology.standalone, 'prefix'):
+ prefix = topology.standalone.prefix
+ else:
+ prefix = None
+ dbgen_prog = prefix + '/bin/dbgen.pl'
+ topology.standalone.log.info('dbgen_prog: %s' % dbgen_prog)
+ os.system('%s -s %s -o %s -n 14' % (dbgen_prog, MYSUFFIX, MYLDIF))
cmdline = 'egrep dn: %s | wc -l' % MYLDIF
p = os.popen(cmdline, "r")
dnnumstr = p.readline()
Show replies by thread