Skip to content

Commit

Permalink
Update artifactTypes to use uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rnakade committed May 23, 2024
1 parent db40894 commit d3948a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ interface TestRunnerService {
val resourceType: String
) {
companion object ResourceType {
const val LOGCAT = "logcat"
const val PNG = "png"
const val TEXTPROTO = "textproto"
const val PROTOBINARY = "pb"
const val LOGCAT = "LOGCAT"
const val PNG = "PNG"
const val TEXTPROTO = "TEXTPROTO"
const val PROTOBINARY = "PB"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import dev.androidx.ci.testRunner.vo.DeviceSetup
import dev.androidx.ci.testRunner.vo.RemoteApk
import dev.androidx.ci.testRunner.vo.UploadedApk
import java.io.InputStream
import java.util.Locale

/**
* Real implementation of [TestRunnerService].
Expand Down Expand Up @@ -208,7 +209,7 @@ internal class TestRunnerServiceImpl internal constructor(
getTestResultFiles(visitor).addTestCaseArtifact(
testIdentifier,
ResultFileResourceImpl(visitor),
"logcat"
"LOGCAT"
)
}
}
Expand Down Expand Up @@ -261,7 +262,7 @@ internal class TestRunnerServiceImpl internal constructor(
}.add(
TestRunnerService.TestCaseArtifact(
ResultFileResourceImpl(visitor),
visitor.fileName.substringAfterLast(".")
visitor.fileName.substringAfterLast(".").uppercase(Locale.getDefault())
)
)
}
Expand Down

0 comments on commit d3948a9

Please sign in to comment.