Skip to content

Commit ac83e79

Browse files
hehe7318gmarciani
authored andcommitted
Fix code check failures in performance tests
1 parent c16d21a commit ac83e79

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

tests/integration-tests/tests/performance_tests/test_osu.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_osu(
5151
request,
5252
):
5353
if in_place_update_on_fleet_enabled == "true":
54-
message = f"Skipping the test as we want to compare performance when cfn-hup is disabled"
54+
message = "Skipping the test as we want to compare performance when cfn-hup is disabled"
5555
logging.warn(message)
5656
pytest.skip(message)
5757

@@ -66,11 +66,7 @@ def test_osu(
6666
capacity_reservation_id = None
6767
placement_group_enabled = True
6868

69-
chef_attributes_dict = {
70-
"cluster": {
71-
"in_place_update_on_fleet_enabled": in_place_update_on_fleet_enabled
72-
}
73-
}
69+
chef_attributes_dict = {"cluster": {"in_place_update_on_fleet_enabled": in_place_update_on_fleet_enabled}}
7470
extra_chef_attributes = json.dumps(chef_attributes_dict)
7571

7672
if instance in ["p6-b200.48xlarge", "p5en.48xlarge"]:

tests/integration-tests/tests/performance_tests/test_starccm.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_starccm(
7373
s3_bucket_factory,
7474
):
7575
if in_place_update_on_fleet_enabled == "true":
76-
message = f"Skipping the test as we want to compare performance when cfn-hup is disabled"
76+
message = "Skipping the test as we want to compare performance when cfn-hup is disabled"
7777
logging.warn(message)
7878
pytest.skip(message)
7979

@@ -83,11 +83,7 @@ def test_starccm(
8383
s3 = boto3.client("s3")
8484
s3.upload_file(str(test_datadir / "dependencies.install.sh"), bucket_name, "scripts/dependencies.install.sh")
8585

86-
chef_attributes_dict = {
87-
"cluster": {
88-
"in_place_update_on_fleet_enabled": in_place_update_on_fleet_enabled
89-
}
90-
}
86+
chef_attributes_dict = {"cluster": {"in_place_update_on_fleet_enabled": in_place_update_on_fleet_enabled}}
9187
extra_chef_attributes = json.dumps(chef_attributes_dict)
9288

9389
cluster_config = pcluster_config_reader(

0 commit comments

Comments
 (0)