From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Kaplun <skaplun@tarantool.org>, Sergey Bronnikov <estetus@gmail.com> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit] test: remove inline suppressions of _TARANTOOL Date: Tue, 11 Jun 2024 13:00:01 +0300 [thread overview] Message-ID: <0bdff943-a0fe-42f3-95cd-8214ffc33d42@tarantool.org> (raw) In-Reply-To: <ZmbKMY1aJUS61Z4y@root> [-- Attachment #1: Type: text/plain, Size: 2446 bytes --] Sergey, thanks for comments. Updated patch force-pushed. Sergey On 10.06.2024 12:41, Sergey Kaplun wrote: > Hi, Sergey! > Thanks for the patch! > LGTM, after fixing my comment below. > > On 06.06.24, Sergey Bronnikov wrote: >> From: Sergey Bronnikov<sergeyb@tarantool.org> >> >> The patch defines _TARANTOOL as a global in luacheck configuration >> file and removes inline suppressions in test files. >> --- >> Branch:https://github.com/tarantool/luajit/tree/ligurio/fix-_TARANTOOL >> > <snipped> > >> 12 files changed, 1 insertion(+), 12 deletions(-) >> >> diff --git a/.luacheckrc b/.luacheckrc >> index a32012ca..62ceeaa2 100644 >> --- a/.luacheckrc >> +++ b/.luacheckrc >> @@ -1,7 +1,7 @@ >> -- Use the default LuaJIT globals. >> std = 'luajit' >> -- This fork also introduces a new global for misc API namespace. >> -read_globals = { 'misc' } >> +read_globals = { 'misc', '_TARANTOOL' } > Can we use it only for <tarantool-tests> directory to avoid it appearing > in the Lua sources inside the repository? Sure. I've updated your patch a bit (formatting): --- a/.luacheckrc +++ b/.luacheckrc @@ -3,6 +3,12 @@ std = 'luajit' -- This fork also introduces a new global for misc API namespace. read_globals = { 'misc', '_TARANTOOL' } +-- The `_TARANTOOL` global is often used for skip condition +-- checks in tests. +files['test/tarantool-tests/'] = { + read_globals = {'_TARANTOOL'} +} + -- These files are inherited from the vanilla LuaJIT or different -- test suites and need to be coherent with the upstream. exclude_files = { > > =================================================================== > diff --git a/.luacheckrc b/.luacheckrc > index a32012ca..7b5634a5 100644 > --- a/.luacheckrc > +++ b/.luacheckrc > @@ -3,6 +3,10 @@ std = 'luajit' > -- This fork also introduces a new global for misc API namespace. > read_globals = { 'misc' } > > +-- The `_TARANTOOL` global is often used for skip condition > +-- checks. > +files['test/tarantool-tests/'] = {read_globals = {'_TARANTOOL'}} > + > -- These files are inherited from the vanilla LuaJIT or different > -- test suites and need to be coherent with the upstream. > exclude_files = { > =================================================================== > > >> >> -- These files are inherited from the vanilla LuaJIT or different >> -- test suites and need to be coherent with the upstream. > <snipped> > >> -- >> 2.34.1 >> [-- Attachment #2: Type: text/html, Size: 3946 bytes --]
next prev parent reply other threads:[~2024-06-11 10:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-06 14:00 Sergey Bronnikov via Tarantool-patches 2024-06-10 9:41 ` Sergey Kaplun via Tarantool-patches 2024-06-11 10:00 ` Sergey Bronnikov via Tarantool-patches [this message] 2024-06-14 11:55 ` Maxim Kokryashkin via Tarantool-patches 2024-07-09 8:03 ` Sergey Kaplun via Tarantool-patches
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=0bdff943-a0fe-42f3-95cd-8214ffc33d42@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=estetus@gmail.com \ --cc=sergeyb@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit] test: remove inline suppressions of _TARANTOOL' \ /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