summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/python/samba/tests/blackbox/ndrdump.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/tests/blackbox/ndrdump.py b/source4/scripting/python/samba/tests/blackbox/ndrdump.py
index 5a56afdbfb..c07e32a24f 100755
--- a/source4/scripting/python/samba/tests/blackbox/ndrdump.py
+++ b/source4/scripting/python/samba/tests/blackbox/ndrdump.py
@@ -10,7 +10,12 @@
import os
from samba.tests import BlackboxTestCase
-data_path_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../../librpc/tests"))
+for p in [ "../../../../../source4/librpc/tests", "../../../../../librpc/tests"]:
+ data_path_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), p))
+ print data_path_dir
+ if os.path.exists(data_path_dir):
+ break
+
class NdrDumpTests(BlackboxTestCase):
"""Blackbox tests for ndrdump."""