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

Commit 1c4905c2 authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Skip enableModem vts if in single SIM mode.

Due to modem issue, enableModem only works in dual-SIM mode.
And we only use that in dual-SIM mode. So skipping testing in
in single SIM mode.

Bug: 152557383
Test: vts
Change-Id: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
Merged-In: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
parent fb98e4f0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include <radio_hidl_hal_utils_v1_3.h>
#include <vector>
#include "VtsCoreUtil.h"

#define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk())

@@ -25,6 +26,15 @@
TEST_P(RadioHidlTest_v1_3, enableModem) {
    serial = GetRandomSerialNumber();

    bool isMultiSimEnabled =
            testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config",
                                                   "dsds") ||
            testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "tsts");
    if (!isMultiSimEnabled) {
        ALOGI("enableModem, no need to test in single SIM mode");
        return;
    }

    bool responseToggle = radioRsp_v1_3->enableModemResponseToggle;
    Return<void> res = radio_v1_3->enableModem(serial, true);
    ASSERT_OK(res);