If we move the test file, the test will break.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14059
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
from subprocess import check_output
from samba.samdb import SamDB
-COMMAND = os.path.join(os.path.dirname(__file__),
- "../../../../../source4/scripting/bin/sambadowngradedatabase")
+COMMAND = os.path.join(os.environ.get("SRCDIR_ABS"),
+ "source4/scripting/bin/sambadowngradedatabase")
class DowngradeTestBase(BlackboxTestCase):