mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 21:55:50 +00:00
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
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "test/lib/key_utils.hh"
|
||||
#include "test/lib/test_utils.hh"
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user