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

Commit ccc44ea4 authored by Kevin Rocard's avatar Kevin Rocard Committed by android-build-merger
Browse files

Audio VTS: remove expectation of policy configuration unicity am: 76efe01b...

Audio VTS: remove expectation of policy configuration unicity am: 76efe01b am: 6b51d9a8 am: 12c64f9e
am: 5b54e5b2

Change-Id: I1aaad9861c1350f6e34f33a24a55c7b0bec69d92
parents 07258bd9 5b54e5b2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);
        }
    }