From 52f5b1ff515aa4f00584830f3f037bc98ebd13ad Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" <travis.collins@analog.com> Date: Fri, 31 May 2024 13:38:50 -0600 Subject: [PATCH] Remove old debug Signed-off-by: Travis F. Collins <travis.collins@analog.com> --- telemetry/plugin.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/telemetry/plugin.py b/telemetry/plugin.py index 86b9513..9b17ab7 100644 --- a/telemetry/plugin.py +++ b/telemetry/plugin.py @@ -65,7 +65,6 @@ def pytest_configure(config): for field in required_metadata[project]: metadata[field] = os.getenv(field.upper(), "NA") # Overwrite with CLI values - print(dir(config.option)) for field in required_metadata[project]: field = field.replace("-", "_") if hasattr(config.option, f"telemetry_{field}"): @@ -89,20 +88,15 @@ def pytest_sessionfinish(session, exitstatus): session.config._telemetry_metadata["junit_xml"] = xml res = session.config._telemetry - print("res", res) - print("Uploading data") - # Create job ID if session.config.option.telemetry_jenkins_job: job_id = session.config.option.telemetry_jenkins_job else: job_id = "m" + str(time.strftime("%Y%m%d_%H%M%S")) - print(job_id) - + # Get files telemetry_files = session.config.stash.get("telemetry_files", None) - print(telemetry_files) - + res.submit_test_data( job_id, session.config._telemetry_metadata, [xmlpath] + telemetry_files )