[Native][tests] Fix sanitization of logged command-line arguments
This commit is contained in:
+1
-1
@@ -151,7 +151,7 @@ internal abstract class LoggedData {
|
||||
protected fun StringBuilder.appendArguments(header: String, args: Iterable<String>): StringBuilder {
|
||||
appendLine(header)
|
||||
|
||||
fun String.sanitize() = if (startsWith("--ktest_filter")) "'$this'" else this
|
||||
fun String.sanitize() = if (startsWith("--ktest_") && substringBefore('=').endsWith("_filter")) "'$this'" else this
|
||||
|
||||
var lastArgIsOptionWithoutEqualsSign = false
|
||||
args.forEachIndexed { index, arg ->
|
||||
|
||||
Reference in New Issue
Block a user