Loading fs_mgr/TEST_MAPPING +0 −4 Original line number Diff line number Diff line Loading @@ -25,8 +25,6 @@ { "name": "vab_legacy_tests" }, // TODO(b/279009697): //{"name": "vabc_legacy_tests"}, { "name": "cow_api_test" }, Loading @@ -44,8 +42,6 @@ { "name": "vab_legacy_tests" }, // TODO(b/279009697): //{"name": "vabc_legacy_tests"} { "name": "snapuserd_test" } Loading fs_mgr/libsnapshot/snapshot_test.cpp +13 −5 Original line number Diff line number Diff line Loading @@ -2883,7 +2883,16 @@ int main(int argc, char** argv) { ::testing::AddGlobalTestEnvironment(new ::android::snapshot::SnapshotTestEnvironment()); gflags::ParseCommandLineFlags(&argc, &argv, false); bool vab_legacy = false; if (FLAGS_force_mode == "vab-legacy") { vab_legacy = true; } if (!vab_legacy) { // This is necessary if the configuration we're testing doesn't match the device. android::base::SetProperty("ctl.stop", "snapuserd"); android::snapshot::KillSnapuserd(); } std::unordered_set<std::string> modes = {"", "vab-legacy"}; if (modes.count(FLAGS_force_mode) == 0) { Loading @@ -2891,13 +2900,12 @@ int main(int argc, char** argv) { return 1; } // This is necessary if the configuration we're testing doesn't match the device. android::snapshot::KillSnapuserd(); int ret = RUN_ALL_TESTS(); android::base::SetProperty("snapuserd.test.io_uring.force_disable", "0"); if (!vab_legacy) { android::snapshot::KillSnapuserd(); } return ret; } Loading
fs_mgr/TEST_MAPPING +0 −4 Original line number Diff line number Diff line Loading @@ -25,8 +25,6 @@ { "name": "vab_legacy_tests" }, // TODO(b/279009697): //{"name": "vabc_legacy_tests"}, { "name": "cow_api_test" }, Loading @@ -44,8 +42,6 @@ { "name": "vab_legacy_tests" }, // TODO(b/279009697): //{"name": "vabc_legacy_tests"} { "name": "snapuserd_test" } Loading
fs_mgr/libsnapshot/snapshot_test.cpp +13 −5 Original line number Diff line number Diff line Loading @@ -2883,7 +2883,16 @@ int main(int argc, char** argv) { ::testing::AddGlobalTestEnvironment(new ::android::snapshot::SnapshotTestEnvironment()); gflags::ParseCommandLineFlags(&argc, &argv, false); bool vab_legacy = false; if (FLAGS_force_mode == "vab-legacy") { vab_legacy = true; } if (!vab_legacy) { // This is necessary if the configuration we're testing doesn't match the device. android::base::SetProperty("ctl.stop", "snapuserd"); android::snapshot::KillSnapuserd(); } std::unordered_set<std::string> modes = {"", "vab-legacy"}; if (modes.count(FLAGS_force_mode) == 0) { Loading @@ -2891,13 +2900,12 @@ int main(int argc, char** argv) { return 1; } // This is necessary if the configuration we're testing doesn't match the device. android::snapshot::KillSnapuserd(); int ret = RUN_ALL_TESTS(); android::base::SetProperty("snapuserd.test.io_uring.force_disable", "0"); if (!vab_legacy) { android::snapshot::KillSnapuserd(); } return ret; }