mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user