graphictest修改排序

Signed-off-by: 王德海 <wangdehai2@huawei.com>
Change-Id: I5034aeb6de3d702c2d1e63f38dd51ff4b2a48857
This commit is contained in:
王德海 2024-08-21 20:11:51 +08:00
parent 9facb7dabe
commit 849e52664f

View File

@ -75,7 +75,9 @@ std::vector<const TestDefInfo*> TestDefManager::GetTestInfosByType(RSGraphicTest
static inline bool Cmp(const TestDefInfo* info1, const TestDefInfo* info2)
{
return info1->filePath < info2->filePath;
std::string s1 = info1->filePath.substr(0, info1->filePath.rfind("/") + 1) + info1->testCaseName + info1->testName;
std::string s2 = info2->filePath.substr(0, info2->filePath.rfind("/") + 1) + info2->testCaseName + info2->testName;
return s1 < s2;
}
std::vector<const TestDefInfo*> TestDefManager::GetAllTestInfos() const