From af2d7a146ff706deda3168dfbe87b89340e0f76f Mon Sep 17 00:00:00 2001 From: Artsiom Mishuta Date: Sun, 1 Feb 2026 11:32:32 +0100 Subject: [PATCH] test: add nightly label add nightly label for test test_foreign_reader_as_mutation_source as an example of usinf boost labels pytest as markers command to test : ./tools/toolchain/dbuild pytest --test-py-init --collect-only -q -m=nightly test/boost output: boost/mutation_reader_test.cc::test_foreign_reader_as_mutation_source.debug.1 boost/mutation_reader_test.cc::test_foreign_reader_as_mutation_source.release.1 boost/mutation_reader_test.cc::test_foreign_reader_as_mutation_source.dev.1 --- test/boost/mutation_reader_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/boost/mutation_reader_test.cc b/test/boost/mutation_reader_test.cc index 7e9832656c..ea094e1a36 100644 --- a/test/boost/mutation_reader_test.cc +++ b/test/boost/mutation_reader_test.cc @@ -42,6 +42,7 @@ #include "test/lib/key_utils.hh" #include "test/lib/test_utils.hh" +#include #include "dht/sharder.hh" #include "schema/schema_builder.hh" #include "replica/cell_locking.hh" @@ -69,6 +70,8 @@ BOOST_AUTO_TEST_SUITE(mutation_reader_test) +namespace test_label = boost::unit_test; + static schema_ptr make_schema() { return schema_builder("ks", "cf") .with_column("pk", bytes_type, column_kind::partition_key) @@ -1239,7 +1242,7 @@ SEASTAR_TEST_CASE(test_combined_mutation_source_is_a_mutation_source) { } // Best run with SMP >= 2 -SEASTAR_THREAD_TEST_CASE(test_foreign_reader_as_mutation_source) { +SEASTAR_THREAD_TEST_CASE(test_foreign_reader_as_mutation_source, *test_label::label("nightly")) { if (smp::count < 2) { std::cerr << "Cannot run test " << get_name() << " with smp::count < 2" << std::endl; return;