Skip to content

Commit 259cd1f

Browse files
Trăistaru Andrei Cristianandreitraistaru
authored andcommitted
test: fix target version for test_mmds.py
Signed-off-by: Trăistaru Andrei Cristian <[email protected]>
1 parent 1a1e445 commit 259cd1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration_tests/functional/test_mmds.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ def test_mmds_snapshot(bin_cloner_path, version):
705705
jailer.download()
706706

707707
target_version = firecracker.base_name()[1:]
708+
# make target version look like X.Y.0
709+
target_version = ".".join(target_version.split(".")[:2] + ["0"])
708710
# If the version is smaller or equal to 1.0.0, we expect that
709711
# MMDS will be initialised with V1 by default.
710712
if compare_versions(target_version, "1.0.0") <= 0:
@@ -752,6 +754,8 @@ def test_mmds_older_snapshot(bin_cloner_path):
752754
)
753755

754756
fc_version = firecracker.base_name()[1:]
757+
# make fc version look like X.Y.0
758+
fc_version = ".".join(fc_version.split(".")[:2] + ["0"])
755759
# If the version is smaller or equal to 1.0.0, we expect that
756760
# MMDS will be initialised with V1 by default.
757761
# Otherwise, we may configure V2.

0 commit comments

Comments
 (0)