From c0e8480678e3a9173c9de1271f651fb3ba375f22 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 16 Oct 2020 10:41:21 -0400 Subject: integration_tests: emit settings to log during setup (#601) --- tests/integration_tests/platforms.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/integration_tests/platforms.py') diff --git a/tests/integration_tests/platforms.py b/tests/integration_tests/platforms.py index 3755eb1e..bade5fe0 100644 --- a/tests/integration_tests/platforms.py +++ b/tests/integration_tests/platforms.py @@ -37,6 +37,17 @@ class IntegrationClient(ABC): self.launch_kwargs = launch_kwargs if launch_kwargs else {} self.client = self._get_client() + def emit_settings_to_log(self) -> None: + log.info( + "\n".join( + ["Settings:"] + + [ + "{}={}".format(key, getattr(self.settings, key)) + for key in sorted(self.settings.current_settings) + ] + ) + ) + @abstractmethod def _get_client(self): raise NotImplementedError -- cgit v1.2.3