Skip to content

Commit

Permalink
Remove old debug
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed May 31, 2024
1 parent 75464e2 commit 52f5b1f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions telemetry/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"):
Expand All @@ -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
)
Expand Down

0 comments on commit 52f5b1f

Please sign in to comment.