diff options
author | JW Wang <wangchun@google.com> | 2019-09-10 15:06:43 +0800 |
---|---|---|
committer | JW Wang <wangchun@google.com> | 2019-09-17 21:07:17 +0800 |
commit | e0f2f3d85dac3dea8d88ab4f078910770d125dbe (patch) | |
tree | d0d2ea1b9277b58594284757d5a6a5660c5f700a /startop/scripts/lib/cmd_utils.py | |
parent | e4828cb97c43c0bdc06cfbc88b0e97ee62f2e970 (diff) |
Use a default value in case of an invalid parameter
Since startObservingHealth is called during boot, it is less desirable
to cause boot loops by an uncaught exception. We will fall back to
DEFAULT_OBSERVING_DURATION_MS when invalid durationMs is passed.
See b/140780361 for more details about the design decision.
Bug: 140780361
Test: atest PackageWatchdogTest
Change-Id: I2bcbecb2dc4c2448ef697001dd93aea5f50f9dbf
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions