summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-04 09:48:35 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-07 13:22:01 +1100
commitb84c0a9ed6d556eb2d3797d606edcd03f9766606 (patch)
tree1edab63c8b276d843a0803621d2d5b2ab092f115
parentbee64c545f357ffa3277436d779855bb8f541043 (diff)
downloadsamba-b84c0a9ed6d556eb2d3797d606edcd03f9766606.tar.gz
samba-b84c0a9ed6d556eb2d3797d606edcd03f9766606.tar.bz2
samba-b84c0a9ed6d556eb2d3797d606edcd03f9766606.zip
s4-test: fixed ndrdump test for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-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."""