This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Tarantool -- an efficient key/value data store".

The branch test-runner has been updated
       via  a2bd93f68da0334bd621b91439c33710404607fa (commit)
      from  f7bbe259d425025cb33281f650160172f06cff18 (commit)

Summary of changes:
 test/admin.py    |   34 +++++++++++++++++-----------------
 test/test-run.py |    6 +++---
 2 files changed, 20 insertions(+), 20 deletions(-)

commit a2bd93f68da0334bd621b91439c33710404607fa
Author: Konstantin Osipov <[email protected]>
Date:   Thu Dec 9 16:34:17 2010 +0300

    Test-runner: fix alignment. No code changes.

diff --git a/test/admin.py b/test/admin.py
index f7d6274..ddae452 100755
--- a/test/admin.py
+++ b/test/admin.py
@@ -39,21 +39,21 @@ class Options:
     """Add all program options, with their defaults."""
 
     parser = argparse.ArgumentParser(
-      description = "Tarantool regression test suite client.")
+        description = "Tarantool regression test suite client.")
 
     parser.add_argument(
-      "--host",
-      dest = 'host',
-      metavar = "host",
-      default = "localhost",
-      help = "Host to connect to. Default: localhost")
+        "--host",
+        dest = 'host',
+        metavar = "host",
+        default = "localhost",
+        help = "Host to connect to. Default: localhost")
 
     parser.add_argument(
-      "--port",
-      dest = "port",
-      default = 33015,
-      help = "Server port to connect to. Default: 33015")
-
+        "--port",
+        dest = "port",
+        default = 33015,
+        help = "Server port to connect to. Default: 33015")
+    
     self.args = parser.parse_args()
 
 
@@ -64,8 +64,7 @@ class Connection:
     self.is_connected = False
 
   def connect(self):
-    self.socket = socket.socket(
-      socket.AF_INET, socket.SOCK_STREAM)
+    self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.socket.connect((self.host, self.port))
     self.is_connected = True
 
@@ -104,11 +103,12 @@ def main():
     with Connection(options.args.host, options.args.port) as con:
       res_sep = "r> "
       for line in iter(sys.stdin.readline, ""):
-       if line.find(res_sep) == 0:
-         continue
-       print line,
-       output = con.execute(line)
+        if line.find(res_sep) == 0:
+          continue
+        print line,
+        output = con.execute(line)
         print res_sep, string.join(output.split("\n"), "\n"+res_sep)
+
     return 0
   except (RuntimeError, socket.error) as e:
     print "Fatal error: ", repr(e)
diff --git a/test/test-run.py b/test/test-run.py
index 2f68127..7bdc62e 100755
--- a/test/test-run.py
+++ b/test/test-run.py
@@ -62,8 +62,8 @@ class Options:
   """Handle options of test-runner"""
   def __init__(self):
     """Add all program options, with their defaults. We assume
-       that the program is started from the directory where it is
-       located"""
+    that the program is started from the directory where it is
+    located"""
 
     parser = argparse.ArgumentParser(
         description = "Tarantool regression test suite front-end. \
@@ -403,7 +403,7 @@ def main():
   options = Options()
 
   try:
-    print "Started", "".join(sys.argv)
+    print "Started", " ".join(sys.argv)
     suites = []
     for suite_name in options.args.suites:
       suites.append(TestSuite(suite_name, options.args))

-- 
Tarantool -- an efficient key/value data store

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to