From a86d8c5a43d94ae86d76edb2b452fbc9028f1c3c Mon Sep 17 00:00:00 2001 From: Yifan J Date: Thu, 16 Feb 2012 22:17:55 +0800 Subject: [PATCH] Remove lodownloadtest.py trailing white spaces --- smoketest/lodownloadtest.py | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/smoketest/lodownloadtest.py b/smoketest/lodownloadtest.py index 5d488b040e12..2aee615ded8a 100755 --- a/smoketest/lodownloadtest.py +++ b/smoketest/lodownloadtest.py @@ -90,10 +90,10 @@ if platform.system() == "Linux": LOSMOKETEST_BIN = "losmoketest" elif platform.system() == "Windows": SOFFICE_BIN = "soffice.exe" - LOSMOKETEST_BIN = "losmoketest" + LOSMOKETEST_BIN = "losmoketest" else: SOFFICE_BIN = "soffice" - LOSMOKETEST_BIN = "losmoketest" + LOSMOKETEST_BIN = "losmoketest" # Relative build url ## pre-releases @@ -179,7 +179,7 @@ def local_build_info(t): testpack_build_time = datetime.datetime.strptime(config.get(t, 'testpack_build_time').strip('\n'), '%d-%b-%Y %H:%M') except ValueError: testpack_name = '' - testpack_build_time = datetime.datetime.min + testpack_build_time = datetime.datetime.min return build_name, build_time, testpack_name, testpack_build_time @@ -196,7 +196,7 @@ def get_url_regexp(t, package, arch): url = "" reg_lo = re.compile('^$') - reg_tst = re.compile('^$') + reg_tst = re.compile('^$') pck = package arc = arch @@ -204,7 +204,7 @@ def get_url_regexp(t, package, arch): if pck == "rpm" and arc == "x86": url = SERVER_URL + "/" + PR_RPM_X86_PATH reg_lo = re.compile('\ 1: logger.info("++More than one testable build is found, test them one by one.") @@ -658,8 +656,7 @@ def main(): except: continue else: - logger.warning("No new build found.") - + logger.warning("No new build found.") if loop: time.sleep(build_check_interval)