From e601b59d5f65a92cbaa2f38b962aa38bfc3ce083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:07:04 +0200 Subject: [PATCH] test: stop when the modules cannot be copied --- tests/run.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/run.lua b/tests/run.lua index 735c5c1..bc9193b 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -138,7 +138,8 @@ do local project = tmp .. '/with space' local vendor = project .. '/_extensions/probe/_vendor/quarto-lua-modules' pandoc.system.make_directory(vendor, true) - os.execute('cp ' .. quote(here .. 'modules') .. '/*.lua ' .. quote(vendor)) + assert(os.execute('cp ' .. quote(here .. 'modules') .. '/*.lua ' .. quote(vendor)), + 'cannot copy the modules into ' .. vendor) local lines, expected = { 'local loaded = {}' }, {} for _, name in ipairs(with_siblings) do lines[#lines + 1] = string.format(