fix argument passing in tests

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 14:01:04 +02:00
parent 6f1a13b531
commit 7ec9fbbf12

View file

@ -30,6 +30,9 @@ import unittest
sys.path.insert(0, os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')))
cdist_exec_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "bin/cdist"))
import cdist
import cdist.config
import cdist.exec
@ -85,7 +88,8 @@ class Config(unittest.TestCase):
self.temp_dir = tempfile.mkdtemp()
self.init_manifest = os.path.join(self.temp_dir, "manifest")
self.config = cdist.config.Config("localhost",
initial_manifest=self.init_manifest)
initial_manifest=self.init_manifest,
exec_path=cdist_exec_path)
def test_initial_manifest_different_parameter(self):
manifest_fd = open(self.init_manifest, "w")