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
This commit is contained in:
Malcolm Chen
2020-04-02 17:39:01 -07:00
parent fb98e4f092
commit 1c4905c2ee

View File

@@ -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);