Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a9941d7 authored by junchao yuan's avatar junchao yuan
Browse files

vts: fix some tunerhal vts fail without frontend device



PD#OTT-27646
bug:222020221

Problem:
some tunerhal vts fail without frontend device

Solution:
fix some logic errors without frontend device

verify:
ohm

Change-Id: I611a81400eb21bb52d59281f2266f3a95e015de9
Signed-off-by: default avatarjunchao yuan <junchao.yuan@amlogic.com>
parent 0638fc1e
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -418,7 +418,7 @@ AssertionResult FrontendTests::closeFrontend() {

void FrontendTests::getFrontendIdByType(FrontendType feType, uint32_t& feId) {
    ASSERT_TRUE(getFrontendIds());
    ASSERT_TRUE(mFeIds.size() > 0);
    if (mFeIds.size() > 0) {
        for (size_t i = 0; i < mFeIds.size(); i++) {
            ASSERT_TRUE(getFrontendInfo(mFeIds[i]));
            if (mFrontendInfo.type != feType) {
@@ -427,8 +427,10 @@ void FrontendTests::getFrontendIdByType(FrontendType feType, uint32_t& feId) {
            feId = mFeIds[i];
            return;
        }
    } else {
        feId = INVALID_ID;
    }
}

void FrontendTests::tuneTest(FrontendConfig frontendConf) {
    uint32_t feId;