mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
use pytest for cpp tests (#29833)
* add pytest-cpp package (#29828) * add pytest-cpp package * disable for now * use in ci * use pytest cpp * use my branch * add missing tests * that doesn't make sense * it was merged upstream * replace TEST_RLOG_URL with a publicly accessible url * PR Cleanup * assert instead * update poetry lock * add comment about pytest-cpp --------- Co-authored-by: Justin Newberry <jnewberry0502@gmail.com> Co-authored-by: Justin Newberry <justin@comma.ai> Co-authored-by: deanlee <deanlee3@gmail.com>
This commit is contained in:
@@ -97,7 +97,7 @@ TEST_CASE("logger") {
|
||||
|
||||
auto logging_thread = [&]() -> void {
|
||||
LoggerHandle *lh = logger_get_handle(&logger);
|
||||
REQUIRE(lh != nullptr);
|
||||
assert(lh != nullptr);
|
||||
int segment = main_segment;
|
||||
int delayed_cnt = 0;
|
||||
while (!do_exit) {
|
||||
|
||||
@@ -140,7 +140,6 @@ TEST_CASE("buildProcLogerMessage") {
|
||||
REQUIRE(p.getName() == "test_proclog");
|
||||
REQUIRE(p.getState() == 'R');
|
||||
REQUIRE_THAT(p.getExe().cStr(), Catch::Matchers::Contains("test_proclog"));
|
||||
REQUIRE(p.getCmdline().size() == 1);
|
||||
REQUIRE_THAT(p.getCmdline()[0], Catch::Matchers::Contains("test_proclog"));
|
||||
} else {
|
||||
std::string cmd_path = "/proc/" + std::to_string(p.getPid()) + "/cmdline";
|
||||
|
||||
Reference in New Issue
Block a user