[Tarantool-patches] [PATCH luajit] test: fix directory detection in lua-Harness suite

Igor Munkin imun at tarantool.org
Mon Apr 19 22:39:21 MSK 2021


Sergey,

I've checked the patch into all long-term branches in tarantool/luajit
and bumped a new version in 1.10, 2.6, 2.7 and master.

On 16.04.21, Sergey Kaplun wrote:
> <314-regex.t> uses `arg[0]:find'314'` to determine the name of the
> directory where rx_* files are located. This leads to the test
> failure, when lua-Harness suite run in the directory containing
> "314" in its name, because the found path doesn't contain the required
> files.
> 
> This patch fixes directory name detection.
> 
> Follows up tarantool/tarantool#5844
> ---
> 
> I tested it locally on branch in directory containing "314" in the name.
> Also, I grepped the test suites with "find", "match", "sub" patterns,
> but didn't see other places with such bug like that.
> 
> Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-harness-314-find-bug
> Tarantool branch: https://github.com/tarantool/tarantool/tree/skaplun/gh-noticket-harness-314-find-bug
> 
>  test/lua-Harness-tests/314-regex.t | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

<snipped>

> -- 
> 2.31.0
> 

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list