Browse Source

Ticket 49155 - Fix db2ldif path in test

Bug Description:  Ticket 47536 uses an incorrect path, which can cause
db2ldif to fail.

Fix Description:  Use the sbin path from paths.py.

https://pagure.io/389-ds-base/issue/49155

Author: wibrown

Review by: mreynolds (Thanks!)
William Brown 8 years ago
parent
commit
ecfbfc8ec7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dirsrvtests/tests/tickets/ticket47536_test.py

+ 1 - 1
dirsrvtests/tests/tickets/ticket47536_test.py

@@ -405,7 +405,7 @@ def test_ticket47536(topology_m2):
     entries = topology_m2.ms["master2"].search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, '(uid=*)')
     assert 20 == len(entries)
 
-    db2ldifpl = '%s/sbin/db2ldif.pl' % topology_m2.ms["master1"].prefix
+    db2ldifpl = '%s/db2ldif.pl' % topology_m2.ms["master1"].get_sbin_dir()
     cmdline = [db2ldifpl, '-n', 'userRoot', '-Z', SERVERID_MASTER_1, '-D', DN_DM, '-w', PASSWORD]
     log.info("##### db2ldif.pl -- %s" % (cmdline))
     doAndPrintIt(cmdline)