From 677f28d8b2d7324817ced7eb5e03343208b6ac86 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 Feb 2011 17:35:54 +1100 Subject: s4-test: fixed setup/ assumption for top level build Pair-Programmed-With: Andrew Bartlett --- source4/scripting/python/samba/tests/samba3.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/scripting/python/samba/tests/samba3.py') diff --git a/source4/scripting/python/samba/tests/samba3.py b/source4/scripting/python/samba/tests/samba3.py index c55de8b521b..3a4b851c75e 100644 --- a/source4/scripting/python/samba/tests/samba3.py +++ b/source4/scripting/python/samba/tests/samba3.py @@ -26,8 +26,11 @@ from samba.samba3 import (WinsDatabase, SmbpasswdFile, ACB_NORMAL, from samba.tests import TestCase import os -DATADIR = os.path.join(os.path.dirname(__file__), - "../../../../../testdata/samba3") +for p in [ "../../../../../testdata/samba3", "../../../../testdata/samba3" ]: + DATADIR = os.path.join(os.path.dirname(__file__), p) + if os.path.exists(DATADIR): + break + class RegistryTestCase(TestCase): -- cgit