Skip to content

Commit c1b082a

Browse files
committed
test: improve DcmToolTests.isAgentJar, support RC version
1 parent 80d0558 commit c1b082a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tool/src/test/java/com/alibaba/dcm/tool/DcmToolTests.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ class DcmToolTests : AnnotationSpec() {
9393
val fileName: String = file.name
9494
if (!fileName.startsWith("dns-cache-manipulator-")) return false
9595

96-
return !fileName.trimToVersion().removeSuffix("-SNAPSHOT").contains("-")
96+
val version = fileName.trimToVersion()
97+
98+
return !(version.endsWith("-javadoc") || version.endsWith("-sources"))
9799
}
98100

99101
private fun String.trimToVersion() = substringAfterLast('/')

0 commit comments

Comments
 (0)