diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java index f2322d9c819..2862fdcd3f8 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java @@ -100,6 +100,9 @@ public class KotlinTestUtils { private static final boolean RUN_IGNORED_TESTS_AS_REGULAR = Boolean.getBoolean("org.jetbrains.kotlin.run.ignored.tests.as.regular"); + private static final boolean PRINT_STACKTRACE_FOR_IGNORED_TESTS = + Boolean.getBoolean("org.jetbrains.kotlin.print.stacktrace.for.ignored.tests"); + private static final boolean AUTOMATICALLY_UNMUTE_PASSED_TESTS = true; private static final boolean AUTOMATICALLY_MUTE_FAILED_TESTS = false; @@ -1077,7 +1080,9 @@ public class KotlinTestUtils { throw e; } - e.printStackTrace(); + if (PRINT_STACKTRACE_FOR_IGNORED_TESTS) { + e.printStackTrace(); + } return; } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.173 b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.173 index 1ac5747ad07..7898bdede2f 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.173 +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.173 @@ -99,6 +99,9 @@ public class KotlinTestUtils { private static final boolean RUN_IGNORED_TESTS_AS_REGULAR = Boolean.getBoolean("org.jetbrains.kotlin.run.ignored.tests.as.regular"); + private static final boolean PRINT_STACKTRACE_FOR_IGNORED_TESTS = + Boolean.getBoolean("org.jetbrains.kotlin.print.stacktrace.for.ignored.tests"); + private static final boolean AUTOMATICALLY_UNMUTE_PASSED_TESTS = true; private static final boolean AUTOMATICALLY_MUTE_FAILED_TESTS = false; @@ -1094,7 +1097,9 @@ public class KotlinTestUtils { throw e; } - e.printStackTrace(); + if (PRINT_STACKTRACE_FOR_IGNORED_TESTS) { + e.printStackTrace(); + } return; } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as31 b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as31 index c3e51e8aa8b..06cf7f7fdd3 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as31 +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as31 @@ -99,6 +99,9 @@ public class KotlinTestUtils { private static final boolean RUN_IGNORED_TESTS_AS_REGULAR = Boolean.getBoolean("org.jetbrains.kotlin.run.ignored.tests.as.regular"); + private static final boolean PRINT_STACKTRACE_FOR_IGNORED_TESTS = + Boolean.getBoolean("org.jetbrains.kotlin.print.stacktrace.for.ignored.tests"); + private static final boolean AUTOMATICALLY_UNMUTE_PASSED_TESTS = true; private static final boolean AUTOMATICALLY_MUTE_FAILED_TESTS = false; @@ -1094,7 +1097,9 @@ public class KotlinTestUtils { throw e; } - e.printStackTrace(); + if (PRINT_STACKTRACE_FOR_IGNORED_TESTS) { + e.printStackTrace(); + } return; } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as32 b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as32 index 05e9c6e5525..dc9766184bb 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as32 +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java.as32 @@ -99,6 +99,9 @@ public class KotlinTestUtils { private static final boolean RUN_IGNORED_TESTS_AS_REGULAR = Boolean.getBoolean("org.jetbrains.kotlin.run.ignored.tests.as.regular"); + private static final boolean PRINT_STACKTRACE_FOR_IGNORED_TESTS = + Boolean.getBoolean("org.jetbrains.kotlin.print.stacktrace.for.ignored.tests"); + private static final boolean AUTOMATICALLY_UNMUTE_PASSED_TESTS = true; private static final boolean AUTOMATICALLY_MUTE_FAILED_TESTS = false; @@ -1094,7 +1097,9 @@ public class KotlinTestUtils { throw e; } - e.printStackTrace(); + if (PRINT_STACKTRACE_FOR_IGNORED_TESTS) { + e.printStackTrace(); + } return; }