refactor out_path -> base_path
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
866645679a
commit
b527479620
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ class Code(object):
|
||||||
self.remote = remote
|
self.remote = remote
|
||||||
self.env = {
|
self.env = {
|
||||||
'__target_host': self.target_host,
|
'__target_host': self.target_host,
|
||||||
'__global': self.local.out_path,
|
'__global': self.local.base_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _run_gencode(self, cdist_object, which):
|
def _run_gencode(self, cdist_object, which):
|
||||||
|
|
|
@ -47,11 +47,11 @@ class ConfigInstallRunTestCase(test.CdistTestCase):
|
||||||
os.environ = os.environ.copy()
|
os.environ = os.environ.copy()
|
||||||
self.temp_dir = self.mkdtemp()
|
self.temp_dir = self.mkdtemp()
|
||||||
|
|
||||||
self.out_dir = os.path.join(self.temp_dir, "out")
|
self.local_dir = os.path.join(self.temp_dir, "local")
|
||||||
os.mkdir(self.out_dir)
|
os.mkdir(self.local_dir)
|
||||||
self.local = cdist.exec.local.Local(
|
self.local = cdist.exec.local.Local(
|
||||||
target_host=self.target_host,
|
target_host=self.target_host,
|
||||||
out_path=self.out_dir)
|
base_path=self.local_dir)
|
||||||
|
|
||||||
self.remote_dir = os.path.join(self.temp_dir, "remote")
|
self.remote_dir = os.path.join(self.temp_dir, "remote")
|
||||||
os.mkdir(self.remote_dir)
|
os.mkdir(self.remote_dir)
|
||||||
|
|
Loading…
Reference in a new issue