Skip to content

Commit 58ac163

Browse files
authored
Merge branch 'main' into misc_fixes
2 parents dc7cc82 + 504b94d commit 58ac163

File tree

3 files changed

+8
-95
lines changed

3 files changed

+8
-95
lines changed

tests/conftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ def pytest_addoption(parser):
7777

7878
def pytest_report_header():
7979
"""Pytest hook to print relevant metadata in the logs"""
80-
return f"EC2 AMI: {global_props.ami}"
80+
return "\n".join(
81+
[
82+
f"EC2 AMI: {global_props.ami}",
83+
f"EC2 Instance ID: {global_props.instance_id}",
84+
]
85+
)
8186

8287

8388
@pytest.hookimpl(wrapper=True, tryfirst=True)

tests/framework/properties.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ def __init__(self):
9292
self.environment = self._detect_environment()
9393
if self.is_ec2:
9494
self.instance = imdsv2_get("/meta-data/instance-type")
95+
self.instance_id = imdsv2_get("/meta-data/instance-id")
9596
self.ami = imdsv2_get("/meta-data/ami-id")
9697
else:
9798
self.instance = "NA"
99+
self.instance_id = "NA"
98100
self.ami = "NA"
99101

100102
@property

tests/integration_tests/performance/test_benchmarks.py

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)