mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
test/boost: add dummy case to table_helper_test for non-injection modes
The only test requires SCYLLA_ENABLE_ERROR_INJECTION. In modes without it
(e.g. release) the suite was empty, so pytest exited with code 5
("no tests collected") and CI failed. Add a no-op case in that branch
so collection always yields at least one test.
This commit is contained in:
@@ -98,4 +98,14 @@ SEASTAR_TEST_CASE(test_concurrent_invalidation) {
|
||||
|
||||
#endif // SCYLLA_ENABLE_ERROR_INJECTION
|
||||
|
||||
#ifndef SCYLLA_ENABLE_ERROR_INJECTION
|
||||
// The only test in this suite requires error injection support. Without this
|
||||
// dummy case the suite would be empty, which causes boost to report
|
||||
// "test tree is empty" and pytest to exit with code 5 ("no tests collected"),
|
||||
// failing CI in modes (e.g. release) where error injection is disabled.
|
||||
BOOST_AUTO_TEST_CASE(test_skipped_no_error_injection) {
|
||||
BOOST_TEST_MESSAGE("table_helper_test requires SCYLLA_ENABLE_ERROR_INJECTION; skipping");
|
||||
}
|
||||
#endif
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
Reference in New Issue
Block a user