diff options
| author | jovanak <jovanak@google.com> | 2019-10-31 16:49:24 -0700 |
|---|---|---|
| committer | jovanak <jovanak@google.com> | 2019-11-18 03:46:13 -0800 |
| commit | e2043617199c6044f487f2a78eb658fddbc91768 (patch) | |
| tree | 8f33b592fc348c9991fbe0b2cdb6264a5b0dc6e4 /startop/scripts/lib/cmd_utils.py | |
| parent | b66ea478d4161a5f755bca5901a26a4d81c4f35a (diff) | |
Add wait flag to am switch-user command.
Previously, command returns right away. CTS tests that use it are forced to
loop waiting for the change in am get-current-user to see if the switch
completed. This method is unreliable because it returns the new user id before
UserController.mCurrentUser updated.
Adding "-w" to the switch command will make it wait for the switch to be
completed.
Fixes:141998718
Test: manual switch-user tests with -w flag
Change-Id: I41bbcff0c79677ba3bf6b58e1fc96cd13a681b33
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions
