Skip to content

Commit 3fe1550

Browse files
authored
Kotlin unit tests: use best plugin version compatible with environment kotlinc
1 parent cee0e8e commit 3fe1550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/kotlin-extractor/kotlin_plugin_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def get_single_version(fakeVersionOutput = None):
4646
if len(matching_minor_versions) == 0:
4747
raise Exception(f'Cannot find a matching minor version for kotlinc version {current_version} (got {versionOutput}; know about {str(many_versions)})')
4848

49-
matching_minor_versions.sort()
49+
matching_minor_versions.sort(reverse = True)
5050

5151
for version in matching_minor_versions:
52-
if version >= current_version:
52+
if version <= current_version:
5353
return version_tuple_to_string(version)
5454

5555
return version_tuple_to_string(matching_minor_versions[-1])

0 commit comments

Comments
 (0)