google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
639 stars 179 forks source link

Fix typo in run_command #810

Closed nkprasad12 closed 2 years ago

nkprasad12 commented 2 years ago

Currently, if there's a timeout, the cmd field of the exception is set to cwd, which results in confusing error messages like:

Command 'None' timed out after 20 seconds

This change is Reviewable

nkprasad12 commented 2 years ago

Added a unit test. The new unit test would fail on the old run_command because it just says "None".