diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-23 11:11:41 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-23 11:11:41 +0000 |
commit | 69869aa63264e44a52b6801194b1cd047f1d761e (patch) | |
tree | fd937333719ae7f7949f0ec8c46b79b8729ba8ca /tools/xm-test/lib | |
parent | 761bc92430a11def142bc26c834238d5252282a8 (diff) | |
download | xen-69869aa63264e44a52b6801194b1cd047f1d761e.tar.gz xen-69869aa63264e44a52b6801194b1cd047f1d761e.tar.bz2 xen-69869aa63264e44a52b6801194b1cd047f1d761e.zip |
Replace tabs with spaces.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Diffstat (limited to 'tools/xm-test/lib')
-rw-r--r-- | tools/xm-test/lib/XmTestLib/NetConfig.py | 2 | ||||
-rw-r--r-- | tools/xm-test/lib/XmTestLib/XenDevice.py | 8 | ||||
-rw-r--r-- | tools/xm-test/lib/XmTestLib/arch.py | 2 | ||||
-rw-r--r-- | tools/xm-test/lib/XmTestReport/OSReport.py | 16 | ||||
-rw-r--r-- | tools/xm-test/lib/XmTestReport/Report.py | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/tools/xm-test/lib/XmTestLib/NetConfig.py b/tools/xm-test/lib/XmTestLib/NetConfig.py index 25ccef7ed5..f6397fece3 100644 --- a/tools/xm-test/lib/XmTestLib/NetConfig.py +++ b/tools/xm-test/lib/XmTestLib/NetConfig.py @@ -87,7 +87,7 @@ class NetConfig: else: self.netmask = NETMASK self.network = NETWORK - s_ip = '' + s_ip = '' # Get starting ip and max ip from configured ip range s_ip = NETWORK_IP_RANGE diff --git a/tools/xm-test/lib/XmTestLib/XenDevice.py b/tools/xm-test/lib/XmTestLib/XenDevice.py index cbe16d5658..d899a5e4c8 100644 --- a/tools/xm-test/lib/XmTestLib/XenDevice.py +++ b/tools/xm-test/lib/XmTestLib/XenDevice.py @@ -98,8 +98,8 @@ class XenDevice: self.domain = domain self.configNode = None # Commands run when domain is started or devices added and removed. - self.dom0_cmds = [] - self.domU_cmds = [] + self.dom0_cmds = [] + self.domU_cmds = [] def __str__(self): """Convert device config to XenConfig node compatible string""" @@ -178,7 +178,7 @@ class XenNetDevice(XenDevice): self.dom0_alias_ip = None if domain.getDomainType() == "HVM": - self.config["type"] = "ioemu" + self.config["type"] = "ioemu" if not self.config.has_key('bridge'): self.config["bridge"] = "xenbr0" @@ -252,7 +252,7 @@ class XenNetDevice(XenDevice): if (self.ip and not ip) or ((self.ip and ip) and (self.ip != ip)): self.releaseNetDevIP() - if not self.netmask: + if not self.netmask: self.netmask = xmtest_netconf.getNetMask() if not self.network: diff --git a/tools/xm-test/lib/XmTestLib/arch.py b/tools/xm-test/lib/XmTestLib/arch.py index 331ede5414..b13d41dcc9 100644 --- a/tools/xm-test/lib/XmTestLib/arch.py +++ b/tools/xm-test/lib/XmTestLib/arch.py @@ -94,7 +94,7 @@ def ppc_checkBuffer(buffer): for i in range(0, len(checks)): check=checks[i] if check.get('pattern').search(buffer): - FAIL(check.get('message')) + FAIL(check.get('message')) return diff --git a/tools/xm-test/lib/XmTestReport/OSReport.py b/tools/xm-test/lib/XmTestReport/OSReport.py index cb4759ea3b..80bb4bed53 100644 --- a/tools/xm-test/lib/XmTestReport/OSReport.py +++ b/tools/xm-test/lib/XmTestReport/OSReport.py @@ -149,16 +149,16 @@ class OperatingSystem: return None, None def __debianStyleRelease(self): - if os.access("/etc/debian_version", os.R_OK): - rFile = file("/etc/debian_version") - else: - rFile = None + if os.access("/etc/debian_version", os.R_OK): + rFile = file("/etc/debian_version") + else: + rFile = None - if not rFile: - return None, None + if not rFile: + return None, None - line = rFile.readline() - return "Debian", line.rstrip("\n"); + line = rFile.readline() + return "Debian", line.rstrip("\n"); def __lsbStyleRelease(self): if os.access("/etc/lsb-release", os.R_OK): diff --git a/tools/xm-test/lib/XmTestReport/Report.py b/tools/xm-test/lib/XmTestReport/Report.py index 92412b8770..4cca826c96 100644 --- a/tools/xm-test/lib/XmTestReport/Report.py +++ b/tools/xm-test/lib/XmTestReport/Report.py @@ -86,7 +86,7 @@ def encodeForm(fieldList): def postResults(report_server, results): if not re.match('http://', report_server): - report_server = 'http://'+report_server + report_server = 'http://'+report_server (report_host,report_url) = urlparse(report_server)[1:3] conn = httplib.HTTPConnection(report_host) |