Integration tests: publish event log dir in tests

GitOrigin-RevId: 8dbca50a3be19bb802bba6ea136215c2e9a64130
This commit is contained in:
Anna Koehler
2022-09-25 21:12:19 +02:00
committed by intellij-monorepo-bot
parent 3af34ee528
commit 2e7317cff9

View File

@@ -319,12 +319,18 @@ data class IDERunContext(
}
private fun publishArtifacts(isRunSuccessful: Boolean) {
// publish artifacts to directory with a test in any case
// publish log dir to directory with a test in any case
testContext.publishArtifact(
source = testContext.paths.logsDir,
artifactPath = contextName,
artifactName = formatArtifactName("logs", testContext.testName)
)
// publish FUS dir to directory with a test
testContext.publishArtifact(
source = testContext.paths.systemDir.resolve("event-log-data/logs/FUS"),
artifactPath = contextName,
artifactName = formatArtifactName("event-log-data", testContext.testName)
)
if (!isRunSuccessful)
testContext.publishArtifact(