From 6033dd2c58a375604b15612eba7a10f5bd5767bc Mon Sep 17 00:00:00 2001 From: JW Wang Date: Mon, 2 Mar 2020 14:39:56 +0800 Subject: [PATCH] Override phenotype flags during tests https://g3doc.corp.google.com/experiments/g3doc/mobile/phenotype/android/testing.md?cl=head#hermetic Phenotype talks to a server to override the device config changes made by the tests. Therefore, watchdog timeout didn't happen as expected and caused tests to fail. We need to override the flags on our own during tests so the device config values ('watchdog_request_timeout_millis' in this case) won't be changed in an unexpected way. See b/148042585#comment21 for more details. Bug: 148042585 Test: atest NetworkStagedRollbackTest Change-Id: I4d8944f7fef93445de8f971c6a96fef7c71872db --- tests/RollbackTest/NetworkStagedRollbackTest.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/RollbackTest/NetworkStagedRollbackTest.xml b/tests/RollbackTest/NetworkStagedRollbackTest.xml index a465a4fe578b5..2ab907a592981 100644 --- a/tests/RollbackTest/NetworkStagedRollbackTest.xml +++ b/tests/RollbackTest/NetworkStagedRollbackTest.xml @@ -19,6 +19,12 @@