hundreds-breakfast-49010
09/01/2020, 2:20 AMTestSubsystem
, --extra-env-vars
, and invoking that option causes some of the tests in test_test.py
to failhundreds-breakfast-49010
09/01/2020, 2:21 AMhundreds-breakfast-49010
09/01/2020, 2:21 AMhundreds-breakfast-49010
09/01/2020, 2:22 AMsrc/python/pants/core/goals/test_test.py:266:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/python/pants/core/goals/test_test.py:202: in run_test_rule
union_membership=union_membership,
src/python/pants/testutil/rule_runner.py:372: in run_rule_with_mocks
res = rule_coroutine.send(rule_input)
src/python/pants/core/goals/test.py:376: in run_tests
if test_subsystem.extra_env_vars:
src/python/pants/core/goals/test.py:337: in extra_env_vars
return cast(List[str], self.options.extra_env_vars)
src/python/pants/option/option_value_container.py:129: in __getattr__
return self._get_underlying_value(key)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pants.option.option_value_container.OptionValueContainer object at 0x7f23be63de48>
key = 'extra_env_vars'
def _get_underlying_value(self, key: Key):
# Note that the key may exist with a value of None, so we can't just
# test self._value_map.get() for None.
if key not in self._value_map:
> raise AttributeError(key)
E AttributeError: extra_env_vars
hundreds-father-404
09/01/2020, 2:22 AMcreate_subsystem()
hundreds-breakfast-49010
09/01/2020, 2:23 AMcreate_goal_subsystem
has to work this way, or if it shoudl try to detect options that are set via register_options
hundreds-father-404
09/01/2020, 2:23 AMhundreds-breakfast-49010
09/01/2020, 2:23 AMhundreds-breakfast-49010
09/01/2020, 2:24 AM