• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 11049846723
88%

Build:
DEFAULT BRANCH: master
Ran 26 Sep 2024 10:01AM UTC
Jobs 1
Files 514
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2024 09:52AM UTC coverage: 87.32% (+0.01%) from 87.307%
11049846723

push

github

Totktonada
test: specify the dir in the cluster helper

The cluster helper in `test/config-luatest/cluster.lua` is used to
define the clusters in an easy way. Though every time the `cluster.new`
is called it creates a new temporary directory, which is not good when
you're writing a test setting up the directory before the cluster
start.

This patch adds an `opts` object as the fourth parameter for
`cluster.new` and makes the function use `opts.dir` as a key for
specifying the directory to start the cluster.

Example:
```
    local dir = '/some/long/dir'
    local cluster_config = cbuilder:new(remote_config)
        :use_replicaset('r-001')
        :add_instance('i-001', {})
        :config()

    -- The cluster will be started in a new temp directory.
    local cluster = cluster.new(g, cluster_config)

    -- The cluster will be started in '/some/long/dir'.
    local cluster = cluster.new(g, cluster_config, nil, { dir = dir })
```

Needed for testing tarantool/tarantool-ee#870.

NO_CHANGELOG=internal testing helper change
NO_TEST=internal testing helper change
NO_DOC=internal testing helper change

68999 of 122509 branches covered (56.32%)

101758 of 116534 relevant lines covered (87.32%)

2580098.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11049846723.1 26 Sep 2024 10:01AM UTC 0
87.32
GitHub Action Run
Source Files on build 11049846723
Detailed source file information is not available for this build.
  • Back to Repo
  • 53d02c4d on github
  • Prev Build on master (#11032491917)
  • Next Build on master (#11079321255)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc