Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Bronnikov <sergeyb@tarantool.org>
To: Leonid Vasiliev <lvasiliev@tarantool.org>,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>,
	tarantool-patches@dev.tarantool.org
Cc: alexander.turenko@tarantool.org
Subject: Re: [Tarantool-patches] [PATCH 1/4] test: convert print to function and make quotes use consistent
Date: Tue, 15 Dec 2020 14:51:14 +0300	[thread overview]
Message-ID: <ed0be031-742a-49a2-ccec-07559c5a47d0@tarantool.org> (raw)
In-Reply-To: <b3379d9b-3b4e-20c1-4564-b827ac9e08d0@tarantool.org>

Hello,

thanks for review!

On 15.12.2020 13:05, Leonid Vasiliev wrote:
> Hi! I looked at the commit 1f34abf6e059532ddfa097e4c1a86030d34341a9 on
> the branch, because not all the diff has been attached here (or I can't
> find them).
> Not all multi-line prints were reverted. Let's finish the revert.
> As for the rest of the changes:"I think this patch can be considered
> complete." (LGTM)
>
>
Yep, there were some places. Reverted and force-pushed. CI is green [1].

1. https://gitlab.com/tarantool/tarantool/-/pipelines/230020600


diff --git a/test/box-py/call.test.py b/test/box-py/call.test.py
index 75ced1dff..9f508268d 100644
--- a/test/box-py/call.test.py
+++ b/test/box-py/call.test.py
@@ -23,11 +23,11 @@ call("f1")
  # IPROTO required!
  call("box.error", 33333, "Hey!")

-print("")
-print("# A test case for Bug#103491")
-print("# server CALL processing bug with name path longer than two")
-print("# https://bugs.launchpad.net/tarantool/+bug/1034912")
-print("")
+print("""
+# A test case for Bug#103491
+# server CALL processing bug with name path longer than two
+# https://bugs.launchpad.net/tarantool/+bug/1034912
+""")
  admin("f = function() return 'OK' end")
  admin("test = {}")
  admin("test.f = f")
@@ -37,11 +37,11 @@ call("f")
  call("test.f")
  call("test.test.f")

-print("")
-print("# Test for Bug #955226")
-print("# Lua Numbers are passed back wrongly as strings")
-print("#")
-print("")
+print("""
+# Test for Bug #955226
+# Lua Numbers are passed back wrongly as strings
+#
+""")
  admin("function foo() return 1, 2, '1', '2' end")
  call("foo")

diff --git a/test/box-py/snapshot.result b/test/box-py/snapshot.result
index 034f0bba7..fbaab912f 100644
--- a/test/box-py/snapshot.result
+++ b/test/box-py/snapshot.result
@@ -44,7 +44,7 @@ space:delete{2}
  ...
  #
  # A test case for http://bugs.launchpad.net/bugs/727174
-# 'tarantool_box crashes when saving snapshot on SIGUSR1'
+# "tarantool_box crashes when saving snapshot on SIGUSR1"
  #

  # Increment the lsn number, to make sure there is no such snapshot yet

diff --git a/test/box-py/snapshot.test.py b/test/box-py/snapshot.test.py
index 7d660d9bf..e34126ed2 100644
--- a/test/box-py/snapshot.test.py
+++ b/test/box-py/snapshot.test.py
@@ -41,13 +41,14 @@ os.rmdir(snapshot)
  admin("space:delete{1}")
  admin("space:delete{2}")

-print("#")
-print("# A test case for http://bugs.launchpad.net/bugs/727174")
-print("# 'tarantool_box crashes when saving snapshot on SIGUSR1'")
-print("#\n")
+print("""#
+# A test case for http://bugs.launchpad.net/bugs/727174
+# "tarantool_box crashes when saving snapshot on SIGUSR1"
+#""")

-print("# Increment the lsn number, to make sure there is no such 
snapshot yet")
-print("#")
+print("""
+# Increment the lsn number, to make sure there is no such snapshot yet
+#""")

  admin("space:insert{1, 'Test tuple'}")

diff --git a/test/xlog-py/misc.test.py b/test/xlog-py/misc.test.py
index 3fcda9504..3330a8e57 100644
--- a/test/xlog-py/misc.test.py
+++ b/test/xlog-py/misc.test.py
@@ -13,9 +13,9 @@ server.stop()

  data_path = os.path.join(server.vardir, server.name)

-print("")
-print("# xlog file must exist after inserts.")
-print("")
+print("""
+# xlog file must exist after inserts.
+""")
  filename = str(lsn).zfill(20) + ".xlog"
  wal = os.path.join(data_path, filename)

@@ -30,9 +30,9 @@ server.admin("index = space:create_index('primary', { 
type = 'hash' })")
  server.stop()
  lsn += 2

-print("")
-print("# a new xlog must be opened after regular termination.")
-print("")
+print("""
+# a new xlog must be opened after regular termination.
+""")
  filename = str(lsn).zfill(20) + ".xlog"
  server.start()

@@ -49,9 +49,10 @@ if os.access(wal, os.F_OK):
    print(".xlog stays around after shutdown")
  lsn += 1

-print("")
-print("# An xlog file with one record during recovery.")
-print("")
+print("""
+# An xlog file with one record during recovery.
+""")
+
  server.start()
  filename = str(lsn).zfill(20) + ".xlog"
  wal = os.path.join(data_path, filename)

  reply	other threads:[~2020-12-15 11:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1607675470.git.sergeyb@tarantool.org>
2020-12-11  8:42 ` sergeyb
2020-12-13 17:58   ` Vladislav Shpilevoy
2020-12-14 11:44     ` Sergey Bronnikov
2020-12-15 10:05       ` Leonid Vasiliev
2020-12-15 11:51         ` Sergey Bronnikov [this message]
2020-12-20 16:47           ` Vladislav Shpilevoy
2020-12-23 12:34             ` Sergey Bronnikov
2020-12-11  8:42 ` [Tarantool-patches] [PATCH 2/4] test: make dict.items() compatible with Python 3.x sergeyb
2020-12-13 17:58   ` Vladislav Shpilevoy
2020-12-15 12:40   ` Leonid Vasiliev
2020-12-11  8:42 ` [Tarantool-patches] [PATCH 3/4] test: make convert to hex " sergeyb
2020-12-15 11:55   ` Leonid Vasiliev
2020-12-16 14:04     ` Sergey Bronnikov
2020-12-17 18:26       ` Leonid Vasiliev
2020-12-22  8:15         ` [Tarantool-patches] [PATCH] test: make strings compatible with Python 3 sergeyb
2020-12-23  9:59           ` Leonid Vasiliev
2020-12-23 10:35             ` Sergey Bronnikov
2020-12-23 11:09               ` Leonid Vasiliev
2020-12-22  8:19         ` [Tarantool-patches] [PATCH 3/4] test: make convert to hex compatible with Python 3.x Sergey Bronnikov
2020-12-23 10:00           ` Leonid Vasiliev
2020-12-11  8:42 ` [Tarantool-patches] [PATCH 4/4] test: remove dead code in Python tests end extra newline sergeyb
2020-12-15 12:51   ` Leonid Vasiliev
2020-12-15 13:00     ` Sergey Bronnikov
2020-12-13 19:02 ` [Tarantool-patches] [PATCH v3 0/4] Support Python 3 in tests and PEPify source code Sergey Bronnikov
2020-12-23 10:07   ` Leonid Vasiliev
2020-12-23 12:42     ` Sergey Bronnikov
2020-12-23 23:51       ` Leonid Vasiliev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed0be031-742a-49a2-ccec-07559c5a47d0@tarantool.org \
    --to=sergeyb@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=lvasiliev@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 1/4] test: convert print to function and make quotes use consistent' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox