commit | da22c769907a99a7bafaf0375ac2a0059b109eca | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Fri Jan 22 13:00:24 2021 -0800 |
committer | Hyunsun Moon <hyunsun.moon@gmail.com> | Fri Jan 22 13:00:24 2021 -0800 |
tree | ac4804316857392fd825682481fa5efa76a7aba4 | |
parent | 659f28195cb1b56095dd57584da28224ddd47d09 [diff] |
Ensure the phone is awake during the test Change-Id: I63e9d2ad22b2ab6625d49a9d3adbd80d5b4481a4
diff --git a/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py b/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py index 9f9bf75..af81d5e 100755 --- a/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py +++ b/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py
@@ -173,6 +173,7 @@ sys.exit(1) while True: + _run_adb_shell(adb, "svc power stayon true") cp_state, err = get_control_plane_state(adb) up_state, err = get_user_plane_state(adb) @@ -180,6 +181,8 @@ edge_status['status']['user_plane'] = up_state.name report_aether_network_state() + _run_adb_shell(adb, "svc power stayon false") + time.sleep(CONF.report_interval)