Audio VTS: remove expectation of policy configuration unicity am: 76efe01bbd
am: 6b51d9a855
Change-Id: I59bb70fbc000f424beeb938a08c1fcb24dc08037
This commit is contained in:
commit
81c04d9510
1 changed files with 0 additions and 4 deletions
|
@ -24,13 +24,9 @@ TEST(CheckConfig, audioPolicyConfigurationValidation) {
|
|||
const char* possibleConfigLocations[] = {"/odm/etc", "/vendor/etc", "/system/etc"};
|
||||
const char* configSchemaPath = "/data/local/tmp/audio_policy_configuration.xsd";
|
||||
|
||||
bool found = false;
|
||||
for (std::string folder : possibleConfigLocations) {
|
||||
const auto configPath = folder + '/' + configName;
|
||||
if (access(configPath.c_str(), R_OK) == 0) {
|
||||
ASSERT_FALSE(found) << "Multiple " << configName << " found in "
|
||||
<< ::testing::PrintToString(possibleConfigLocations);
|
||||
found = true;
|
||||
ASSERT_VALID_XML(configPath.c_str(), configSchemaPath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue