Skip to content

Commit 189ce61

Browse files
committed
test(aosd): Trivially inline outputDir
Signed-off-by: Frank Viernau <[email protected]>
1 parent 4ab8a92 commit 189ce61

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plugins/reporters/aosd/src/funTest/kotlin/Aosd20ReporterFunTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ class Aosd20ReporterFunTest : WordSpec({
5454
}
5555

5656
"The generated report" should {
57-
val outputDir = tempdir()
58-
val reportFiles = Aosd20Reporter().generateReport(ReporterInput(ORT_RESULT), outputDir)
57+
val reportFiles = Aosd20Reporter().generateReport(ReporterInput(ORT_RESULT), tempdir())
5958

6059
"be valid according to the schema" {
6160
val schemaJson = readResource("/aosd20/aosd.schema.json")

plugins/reporters/aosd/src/funTest/kotlin/Aosd21ReporterFunTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ class Aosd21ReporterFunTest : WordSpec({
5858
}
5959

6060
"The generated report" should {
61-
val outputDir = tempdir()
62-
val reportFiles = Aosd21Reporter().generateReport(ReporterInput(ORT_RESULT), outputDir)
61+
val reportFiles = Aosd21Reporter().generateReport(ReporterInput(ORT_RESULT), tempdir())
6362

6463
"be valid according to the schema" {
6564
val schemaJson = readResource("/aosd21/AOSD2.1_Importscheme_V2.1.0.json")

0 commit comments

Comments
 (0)