Skip to content

Commit deb8e97

Browse files
gmarcianihgreebe
authored andcommitted
[Test] Fix test_build_image_custom_components by ensuring that the right custom component script is executed on all Ubuntu versions.
1 parent aafd922 commit deb8e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration-tests/tests/createami/test_createami.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def test_build_image_custom_components(
501501
):
502502
"""Test custom components and base AMI is ParallelCluster AMI"""
503503
# Custom script
504-
custom_script_file = "custom_script_ubuntu.sh" if os in ["ubuntu2004"] else "custom_script.sh"
504+
custom_script_file = "custom_script_ubuntu.sh" if os.startswith("ubuntu") else "custom_script.sh"
505505

506506
# Create S3 bucket for pre install scripts, to remove epel package if it is installed
507507
bucket_name = s3_bucket_factory()

0 commit comments

Comments
 (0)