Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions lib/ktf_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,16 @@ stringvec KernelTestMgr::get_test_names()
cur->it = sets.begin();
}

/* Filter out any combined tests that do not have a kernel counterpart loaded */
while (cur->it->second.wrapper.size() != 0 && cur->it != sets.end()) {
if (cur->it->second.test_names.size() == 0)
log(KTF_INFO, "Note: Skipping test suite %s which has combined tests with no kernel counterpart\n",
cur->it->first.c_str());
++(cur->it);
/*
There could be a mismatch between the defined test in user in kernel
Kernel tests with no user counterparts have a default solution,
but user tests with no kernel parts are an error
*/
if (cur->it->second.wrapper.size() != 0 && cur->it != sets.end()) {
for (std::pair<const std::__cxx11::string, ktf::test_cb *> it2 : cur->it->second.wrapper) {
fprintf(stderr, "Error: Test %s/%s has no kernel counterpart!\n", cur->it->first.c_str(), it2.first.c_str());
}
exit(1);
}

if (cur->it == sets.end()) {
Expand Down