google / mobly

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

Initialize dicts for TestRunConfig's dict values. #649

Closed mderu closed 4 years ago

mderu commented 4 years ago

Defaults the controller and user_params to empty dictionaries in TestRunConfig.

These defaults prevent users from needing to check if they are None first, in case the runner left these values unset.


This change is Reviewable

mderu commented 4 years ago

mobly/config_parser.py, line 183 at r1 (raw file):

        self.log_path = None
        # Deprecated, use 'testbed_name'
        self.test_bed_name = None

Bad merge resolution. Fixing.