[Native][tests] Fix sanitization of logged command-line arguments

This commit is contained in:
Dmitriy Dolovov
2021-11-18 22:53:58 +03:00
parent d7c31fbe82
commit 3fa5363434
@@ -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 ->