From b1a14a2a3245743adb960d9ae8c859bf1172feb1 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Tue, 9 May 2023 04:17:25 -0500 Subject: integration tests: fix image specification parsing (#2166) --- tests/integration_tests/integration_settings.py | 2 +- tests/integration_tests/releases.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration_tests/integration_settings.py b/tests/integration_tests/integration_settings.py index aca5bf91..6282def4 100644 --- a/tests/integration_tests/integration_settings.py +++ b/tests/integration_tests/integration_settings.py @@ -33,7 +33,7 @@ INSTANCE_TYPE: Optional[str] = None # Determines the base image to use or generate new images from. # # This can be the name of an Ubuntu release, or in the format -# [::[::[::]]. If given, os and release should +# [::::::]. If given, os and release should # describe the image specified by image_id. (Ubuntu releases are converted # to this format internally; in this case, to "None::ubuntu::focal::20.04".) OS_IMAGE = "focal" diff --git a/tests/integration_tests/releases.py b/tests/integration_tests/releases.py index b2ab9cee..45b0ffcc 100644 --- a/tests/integration_tests/releases.py +++ b/tests/integration_tests/releases.py @@ -66,7 +66,7 @@ class Release: """Get the individual parts from an OS_IMAGE definition. Returns a namedtuple containing id, os, and release of the image.""" - parts = os_image.split("::", 2) + parts = os_image.split("::", 3) if len(parts) == 1: image_id = None os = "ubuntu" @@ -77,7 +77,7 @@ class Release: else: raise ValueError( "OS_IMAGE must either contain release name or be in the form " - "of [::[::[::]]]" + "of [::::::]" ) return cls(os, series, version, image_id) -- cgit v1.2.1