From 7c187d114329d963f41aa26791b739578e0571f7 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 18 Oct 2024 15:14:10 -0400 Subject: [PATCH] f --- teuthology/suite/test/test_run_.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/teuthology/suite/test/test_run_.py b/teuthology/suite/test/test_run_.py index 754a4bd9e..3bb05a891 100644 --- a/teuthology/suite/test/test_run_.py +++ b/teuthology/suite/test/test_run_.py @@ -1,3 +1,4 @@ +import logging import os import pytest import requests @@ -14,6 +15,7 @@ from teuthology.suite import run from teuthology.util.time import TIMESTAMP_FMT +log = logging.getLogger(__name__) class TestRun(object): klass = run.Run @@ -314,10 +316,16 @@ def test_successful_schedule( desc=os.path.join(self.args.suite, build_matrix_desc), ) + kwargs = m_schedule_jobs.call_args.kwargs + log.info("kargs=\n%s", kwargs) + log.info("args=\n%s", kwargs['args']) + log.info("yaml =\n%s", kwargs['stdin']) m_schedule_jobs.assert_has_calls( [call([], [expected_job], runobj.name)], ) - kwargs = m_schedule_jobs.call_kwargs + kwargs = m_schedule_jobs.call_args.kwargs + log.info("args=\n%s", kwargs['args']) + log.info("yaml =\n%s", kwargs['stdin']) stdin_yaml = yaml.safe_load(kwargs['stdin']) for k in y: assert y[k] == stdin_yaml[k]