Tarantool development patches archive
 help / color / mirror / Atom feed
From: Alexander Turenko <alexander.turenko@tarantool.org>
To: Alexander Tikhonov <avtikhon@tarantool.org>
Cc: tarantool-patches <tarantool-patches@freelists.org>
Subject: [tarantool-patches] Re: test-run: pre_cleanup function corrected and enabled
Date: Wed, 27 Feb 2019 16:25:09 +0300	[thread overview]
Message-ID: <20190227132509.z2ws47dz6vxrzc2s@tkn_work_nb> (raw)
In-Reply-To: <1551243198.626093438@f481.i.mail.ru>

NB: Superseded by https://github.com/tarantool/test-run/pull/142

WBR, Alexander Turenko.

On Wed, Feb 27, 2019 at 07:53:18AM +0300, Alexander Tikhonov wrote:
>    Corrected and switched on the pre_cleanup routine,
>    which cleanups the schemas and functions between
>    running tests.
>    Partly fix #3863
>    ---
>    Travis-ci:
>    [1]https://travis-ci.org/tarantool/tarantool/builds/498779830
>    Branch:
>    [2]https://github.com/tarantool/tarantool/tree/avtikhon/gh-3863-run-cle
>    aner
>    diff --git a/lib/test_suite.py b/lib/test_suite.py
>    index 4c8a75b..721db3c 100644
>    --- a/lib/test_suite.py
>    +++ b/lib/test_suite.py
>    @@ -110,7 +110,7 @@ class TestSuite:
>                     dict.fromkeys(self.ini[i].split())
>                     if i in self.ini else dict())
> 
>    -        self.parse_bool_opt('pre_cleanup', False)
>    +        self.parse_bool_opt('pre_cleanup', True)
>             self.parse_bool_opt('use_unix_sockets', False)
>             self.parse_bool_opt('use_unix_sockets_iproto', False)
>             self.parse_bool_opt('is_parallel', False)
>    diff --git a/pre_cleanup.lua b/pre_cleanup.lua
>    index 7702c5a..96be316 100644
>    --- a/pre_cleanup.lua
>    +++ b/pre_cleanup.lua
>    @@ -12,6 +12,13 @@ local function cleanup(self)
>             box.space[name]:drop()
>         end)
> 
>    +    local cluster = box.space._cluster:select()
>    +    for _, tuple in pairs(cluster) do
>    +        if tuple[1] ~= box.info.id then
>    +            box.space._cluster:delete(tuple[1])
>    +        end
>    +    end
>    +
>         local _USER_TYPE = 4
>         local _USER_NAME = 3
> 
>    --
>    Alexander Tikhonov
> 
> References
> 
>    1. https://travis-ci.org/tarantool/tarantool/builds/498779830
>    2. https://github.com/tarantool/tarantool/tree/avtikhon/gh-3863-run-cleaner

      reply	other threads:[~2019-02-27 13:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-27  4:53 [tarantool-patches] " Alexander Tikhonov
2019-02-27 13:25 ` Alexander Turenko [this message]

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=20190227132509.z2ws47dz6vxrzc2s@tkn_work_nb \
    --to=alexander.turenko@tarantool.org \
    --cc=avtikhon@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: test-run: pre_cleanup function corrected and enabled' \
    /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