From bdcf596d8c73556eb2c1f0a417a68aa7141f8bef Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Fri, 02 Sep 2011 10:19:22 +0000
Subject: [PATCH] avoid namingError when using rejects file in import tests

---
 opendj-sdk/opends/tests/staf-tests/shared/functions/dsadm.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/tests/staf-tests/shared/functions/dsadm.xml b/opendj-sdk/opends/tests/staf-tests/shared/functions/dsadm.xml
index b8c784b..15d5d04 100755
--- a/opendj-sdk/opends/tests/staf-tests/shared/functions/dsadm.xml
+++ b/opendj-sdk/opends/tests/staf-tests/shared/functions/dsadm.xml
@@ -944,8 +944,8 @@
           STAFCmdParamsList.append('--skipFile %s' % skipFile)
 
         if  rejectFile:
-          if not os.path.exists(os.path.dirname(skipFile)):
-            os.makedirs(os.path.dirname(skipFile))
+          if not os.path.exists(os.path.dirname(rejectFile)):
+            os.makedirs(os.path.dirname(rejectFile))
 
           STAFCmdParamsList.append('-R %s' % rejectFile)
 

--
Gitblit v1.10.0