add missing import
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
6223402b9e
commit
1e354387f9
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ import string
|
||||||
import random
|
import random
|
||||||
|
|
||||||
import cdist
|
import cdist
|
||||||
|
from cdist import test
|
||||||
from cdist.exec import remote
|
from cdist.exec import remote
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,12 +34,12 @@ class RemoteTestCase(test.CdistTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.temp_dir = self.mkdtemp()
|
self.temp_dir = self.mkdtemp()
|
||||||
target_host = 'localhost'
|
self.target_host = 'localhost'
|
||||||
self.base_path = self.temp_dir
|
self.base_path = self.temp_dir
|
||||||
user = getpass.getuser()
|
user = getpass.getuser()
|
||||||
remote_exec = "ssh -o User=%s -q" % user
|
remote_exec = "ssh -o User=%s -q" % user
|
||||||
remote_copy = "scp -o User=%s -q" % user
|
remote_copy = "scp -o User=%s -q" % user
|
||||||
self.remote = remote.Remote(target_host, self.base_path, remote_exec, remote_copy)
|
self.remote = remote.Remote(self.target_host, self.base_path, remote_exec, remote_copy)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
shutil.rmtree(self.temp_dir)
|
shutil.rmtree(self.temp_dir)
|
||||||
|
|
Loading…
Reference in a new issue