Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster helper does not save artifacts #410

Open
locker opened this issue Jan 9, 2025 · 0 comments
Open

Cluster helper does not save artifacts #410

locker opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@locker
Copy link
Member

locker commented Jan 9, 2025

Create the test test/box-luatest/failing_test.lua in the Tarantool repository:

local cbuilder = require('luatest.cbuilder')
local cluster = require('luatest.cluster')
local t = require('luatest')

local g = t.group()

g.before_all(function(cg)
    local config = cbuilder:new()
        :add_instance('test', {})
        :config()
    cg.cluster = cluster.new(config)
    cg.cluster:start()
end)

g.after_all(function(cg)
    cg.cluster:drop()
end)

g.test_fail = function(cg)
    cg.cluster.test:exec(function()
        t.assert(false)
    end)
end

Run it:

cd test
. <(./test-run.py --env)
luatest -v box-luatest/failing_test.lua

The test fails but no artifacts are saved (/tmp/t/artifacts directory doesn't exist).

Note that the luatest.server helper saves artifacts on failure.

@locker locker added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant