Skip to content

Commit ee6d64e

Browse files
committed
[red] Stabilize Android drive attachment
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 13e923e commit ee6d64e

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

‎tests/publication/test_ci_contract.py‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,28 @@ def test_android_integration_prebuilds_with_bounded_runner_resources(
219219
android,
220220
)
221221
self.assertIn("--set 'hw.ramSize=2048'", android)
222-
self.assertIn("--set 'hw.cpu.ncore=1'", android)
222+
self.assertIn("--set 'hw.cpu.ncore=2'", android)
223223
self.assertIn("-memory 2048", android)
224-
self.assertIn("-cores 1", android)
224+
self.assertIn("-cores 2", android)
225+
self.assertIn(
226+
"settings put global device_provisioned 1",
227+
android,
228+
)
229+
self.assertIn(
230+
"settings put secure user_setup_complete 1",
231+
android,
232+
)
233+
self.assertIn(
234+
"settings put system accelerometer_rotation 0",
235+
android,
236+
)
237+
self.assertIn(
238+
"settings put system user_rotation 0",
239+
android,
240+
)
241+
self.assertIn("getprop init.svc.bootanim", android)
242+
self.assertIn("getprop sys.user.0.ce_available", android)
243+
self.assertIn("sleep 20", android)
225244

226245
prebuild = android.index(
227246
"- name: Prebuild Android integration application"
@@ -232,6 +251,11 @@ def test_android_integration_prebuilds_with_bounded_runner_resources(
232251
)
233252
self.assertLess(prebuild, boot)
234253
self.assertLess(boot, integration)
254+
self.assertLess(
255+
android.index("getprop init.svc.bootanim"),
256+
integration,
257+
)
258+
self.assertLess(android.index("sleep 20"), integration)
235259
self.assertEqual(1, android.count("flutter build apk"))
236260
self.assertIn(
237261
"flutter build apk \\\n"

0 commit comments

Comments
 (0)