Skip to content

Commit 1e56dbc

Browse files
committed
test(cli): Generally do not use the "legacy" Gradle package manager
The "legacy" `Gradle` package manager is a bit special as it is disabled by default, which makes it a bad choice for general testing. So replace it with other package managers that are likely not being superseded any time soon. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 3e0ab28 commit 1e56dbc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cli/src/funTest/kotlin/OrtMainFunTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class OrtMainFunTest : StringSpec() {
8383

8484
val result = OrtMain().test(
8585
"-c", configFile.path,
86-
"-P", "ort.analyzer.enabledPackageManagers=Gradle",
86+
"-P", "ort.analyzer.enabledPackageManagers=Unmanaged",
8787
"analyze",
8888
"-i", inputDir.path,
8989
"-o", outputDir.path
@@ -97,7 +97,7 @@ class OrtMainFunTest : StringSpec() {
9797

9898
withClue(result.stderr) {
9999
iterator.hasNext() shouldBe true
100-
iterator.next().trim() shouldBe "Gradle"
100+
iterator.next().trim() shouldBe "Unmanaged"
101101
}
102102
}
103103

@@ -134,8 +134,8 @@ class OrtMainFunTest : StringSpec() {
134134

135135
val result = OrtMain().test(
136136
"-c", configFile.path,
137-
"-P", "ort.analyzer.enabledPackageManagers=Gradle,NPM",
138-
"-P", "ort.analyzer.disabledPackageManagers=Gradle",
137+
"-P", "ort.analyzer.enabledPackageManagers=Bundler,NPM",
138+
"-P", "ort.analyzer.disabledPackageManagers=Bundler",
139139
"analyze",
140140
"-i", inputDir.path,
141141
"-o", outputDir.path
@@ -178,7 +178,7 @@ class OrtMainFunTest : StringSpec() {
178178

179179
OrtMain().test(
180180
"-c", configFile.path,
181-
"-P", "ort.analyzer.enabledPackageManagers=Gradle,NPM",
181+
"-P", "ort.analyzer.enabledPackageManagers=Bundler,NPM",
182182
"analyze",
183183
"-i", inputDir.path,
184184
"-o", outputDir.path
@@ -196,7 +196,7 @@ class OrtMainFunTest : StringSpec() {
196196

197197
val result = OrtMain().test(
198198
"-c", configFile.path,
199-
"-P", "ort.analyzer.enabledPackageManagers=Gradle",
199+
"-P", "ort.analyzer.enabledPackageManagers=Bundler",
200200
"analyze",
201201
"-i", inputDir.path,
202202
"-o", outputDir.path,

0 commit comments

Comments
 (0)