MCPcopy Create free account
hub / github.com/boostorg/build / __call__

Method __call__

v2/test/configuration.py:82–96  ·  view source on GitHub ↗
(self, test_id, env, extra_args=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

80 self.__tester.fail_test(1)
81
82 def __call__(self, test_id, env, extra_args=None, *args, **kwargs):
83 if env == "" and not canSetEmptyEnvironmentVariable:
84 self.__assertionFailure("Can not set empty environment "
85 "variables on this platform.")
86 self.__registerTestId(str(test_id))
87 if extra_args is None:
88 extra_args = []
89 extra_args.append("---test-id---=%s" % test_id)
90 env_name = "BOOST_BUILD_USER_CONFIG"
91 previous_env = os.environ.get(env_name)
92 _env_set(env_name, env)
93 try:
94 self.__tester.run_build_system(extra_args, *args, **kwargs)
95 finally:
96 _env_set(env_name, previous_env)
97
98 def __registerTestId(self, test_id):
99 if test_id in self.__test_ids:

Callers

nothing calls this directly

Calls 6

__assertionFailureMethod · 0.95
__registerTestIdMethod · 0.95
_env_setFunction · 0.85
appendMethod · 0.80
getMethod · 0.80
run_build_systemMethod · 0.80

Tested by

no test coverage detected