add base path and exec path to test main

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-11 16:26:33 +02:00
parent dc21405583
commit d690fb30cb
1 changed files with 4 additions and 2 deletions

View File

@ -27,8 +27,10 @@ import unittest
cdist_commands=["banner", "config", "install"]
cdist_exec_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../bin/cdist"))
cdist_base_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../"))
cdist_exec_path = os.path.join(cdist_base_path, "bin/cdist")
#class UI(unittest.TestCase):
# def test_banner(self):