[apiConformance] Fix relative all (#16518)
This commit is contained in:
parent
5f416dc4d2
commit
5ccc743707
@ -62,7 +62,7 @@ public:
|
||||
|
||||
void SetUp() override {
|
||||
set_api_entity();
|
||||
auto test_name = this->GetTestName();
|
||||
auto test_name = this->GetFullTestName();
|
||||
k = test_name.find("_mandatory") != std::string::npos || test_name.find("mandatory_") != std::string::npos ? 1 : 0;
|
||||
std::cout << "[ CONFORMANCE ] Influence coefficient: " << k << std::endl;
|
||||
api_summary.updateStat(api_entity, target_device, ov::test::utils::PassRate::Statuses::CRASHED, k);
|
||||
|
@ -83,4 +83,15 @@ std::string TestsCommon::GetTestName() const {
|
||||
return test_name;
|
||||
}
|
||||
|
||||
std::string TestsCommon::GetFullTestName() const {
|
||||
std::string suite_name =
|
||||
::testing::UnitTest::GetInstance()->current_test_info()->test_suite_name();
|
||||
std::replace_if(suite_name.begin(), suite_name.end(),
|
||||
[](char c) { return !std::isalnum(c); }, '_');
|
||||
|
||||
std::string test_name = GetTestName();
|
||||
|
||||
return suite_name + "_" + test_name;
|
||||
}
|
||||
|
||||
} // namespace CommonTestUtils
|
||||
|
@ -18,6 +18,7 @@ protected:
|
||||
|
||||
static std::string GetTimestamp();
|
||||
std::string GetTestName() const;
|
||||
std::string GetFullTestName() const;
|
||||
};
|
||||
|
||||
} // namespace CommonTestUtils
|
||||
|
@ -69,12 +69,13 @@ void ApiSummary::updateStat(ov_entity entity, const std::string& target_device,
|
||||
if (isCrashReported) {
|
||||
cur_stat[real_device].crashed--;
|
||||
isCrashReported = false;
|
||||
} else {
|
||||
cur_stat[real_device].rel_all += rel_influence_coef;
|
||||
}
|
||||
if (isHangReported) {
|
||||
isHangReported = false;
|
||||
return;
|
||||
}
|
||||
cur_stat[real_device].rel_all += rel_influence_coef;
|
||||
switch (status) {
|
||||
case PassRate::Statuses::SKIPPED: {
|
||||
cur_stat[real_device].skipped++;
|
||||
|
Loading…
Reference in New Issue
Block a user