Skip to content

Commit bb51ed3

Browse files
authoredMay 23, 2024··
Update artifactTypes to use uppercase (#80)
* Update artifactTypes to use uppercase * update locale to US
1 parent db40894 commit bb51ed3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
 

‎AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/TestRunnerService.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ interface TestRunnerService {
354354
val resourceType: String
355355
) {
356356
companion object ResourceType {
357-
const val LOGCAT = "logcat"
358-
const val PNG = "png"
359-
const val TEXTPROTO = "textproto"
360-
const val PROTOBINARY = "pb"
357+
const val LOGCAT = "LOGCAT"
358+
const val PNG = "PNG"
359+
const val TEXTPROTO = "TEXTPROTO"
360+
const val PROTOBINARY = "PB"
361361
}
362362
}
363363

‎AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/TestRunnerServiceImpl.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import dev.androidx.ci.testRunner.vo.DeviceSetup
3030
import dev.androidx.ci.testRunner.vo.RemoteApk
3131
import dev.androidx.ci.testRunner.vo.UploadedApk
3232
import java.io.InputStream
33+
import java.util.Locale
3334

3435
/**
3536
* Real implementation of [TestRunnerService].
@@ -208,7 +209,7 @@ internal class TestRunnerServiceImpl internal constructor(
208209
getTestResultFiles(visitor).addTestCaseArtifact(
209210
testIdentifier,
210211
ResultFileResourceImpl(visitor),
211-
"logcat"
212+
"LOGCAT"
212213
)
213214
}
214215
}
@@ -261,7 +262,7 @@ internal class TestRunnerServiceImpl internal constructor(
261262
}.add(
262263
TestRunnerService.TestCaseArtifact(
263264
ResultFileResourceImpl(visitor),
264-
visitor.fileName.substringAfterLast(".")
265+
visitor.fileName.substringAfterLast(".").uppercase(Locale.US)
265266
)
266267
)
267268
}

0 commit comments

Comments
 (0)
Please sign in to comment.