mirror of https://github.com/apache/kafka.git
MINOR: cleanTest ought to remove output of unitTest task and integrat… (#10585)
The command used by our private CI is ./gradlew cleanTest xxx:test. It does not re-run test when we use unitTest and integrationTest to replace test. The root cause is that we don't offer test output (unitTest and integrationTest) to cleanTest task and so it does not delete related test output. Reviewers: Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
parent
274eccf922
commit
dc5456c0d2
|
@ -449,6 +449,14 @@ subprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove test output from all test types
|
||||||
|
tasks.withType(Test).all { t ->
|
||||||
|
cleanTest {
|
||||||
|
delete t.reports.junitXml.destination
|
||||||
|
delete t.reports.html.destination
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from "$rootDir/LICENSE"
|
from "$rootDir/LICENSE"
|
||||||
from "$rootDir/NOTICE"
|
from "$rootDir/NOTICE"
|
||||||
|
|
Loading…
Reference in New Issue