[Tarantool-patches] [PATCH v2 07/10] test: backport lua-Harness directory detection
Maxim Kokryashkin
max.kokryashkin at gmail.com
Tue Jul 20 19:26:55 MSK 2021
The patch[1] from lua-Harness fixes the same issue commit
789820aac7cecc3b5ae394aadc12a5ec25b68121('test: fix directory detection
in lua-Harness suite') does, but it also works on Windows, so the
mentioned commit can be supreseded by that patch.
Part of tarantool/tarantool#5970
Part of tarantool/tarantool#4473
---
test/lua-Harness-tests/314-regex.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/lua-Harness-tests/314-regex.t b/test/lua-Harness-tests/314-regex.t
index 62e2ad7f..71037779 100755
--- a/test/lua-Harness-tests/314-regex.t
+++ b/test/lua-Harness-tests/314-regex.t
@@ -164,7 +164,7 @@ local function split (line)
end
local test_number = 0
-local dirname = arg[0]:gsub('([^/]+)%.t$', '')
+local dirname = arg[0]:gsub('([^/\\]+)$', '')
for _, filename in ipairs(test_files) do
local f, msg = io.open(dirname .. filename, 'r')
if f == nil then
--
2.32.0
More information about the Tarantool-patches
mailing list