From 823575a89085aedcb20b95d31005d19edb10e776 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 8 Aug 2014 15:15:01 +0100 Subject: Various style fixes to release-test --- scripts/release-test | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts/release-test') diff --git a/scripts/release-test b/scripts/release-test index ec171d52..1939a0d4 100755 --- a/scripts/release-test +++ b/scripts/release-test @@ -36,6 +36,7 @@ import morphlib class MorphologyHelper(object): + def __init__(self): self.sb = sb = morphlib.sysbranchdir.open_from_within('.') defs_repo_path = sb.get_git_directory_name(sb.root_repository_url) @@ -79,6 +80,7 @@ class TimeoutError(cliapp.AppException): class VMHost(object): + def __init__(self, user, address, disk_path): self.user = user self.address = address @@ -96,6 +98,7 @@ class VMHost(object): class Instance(object): + def __init__(self, deployment, config, host_machine, vm_id, rootfs_path): self.deployment = deployment self.config = config @@ -119,11 +122,11 @@ class Instance(object): return cliapp.runcmd(ssh_cmd, **kwargs) def _wait_for_dhcp(self, timeout): - ''' - Block until given hostname resolves successfully. + '''Block until given hostname resolves successfully. Raises TimeoutError if the hostname has not appeared in 'timeout' seconds. + ''' start_time = time.time() while True: @@ -177,8 +180,8 @@ class Instance(object): class Deployment(object): - def __init__(self, cluster_path, name, - deployment_config, host_machine): + + def __init__(self, cluster_path, name, deployment_config, host_machine): self.cluster_path = cluster_path self.name = name self.deployment_config = deployment_config -- cgit v1.2.1