From b84c0a9ed6d556eb2d3797d606edcd03f9766606 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 4 Feb 2011 09:48:35 +1100 Subject: s4-test: fixed ndrdump test for top level build Pair-Programmed-With: Andrew Bartlett --- source4/scripting/python/samba/tests/blackbox/ndrdump.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/scripting') 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.""" -- cgit