Skip to content

Commit dc0b307

Browse files
committed
test(version-control-systems): Do not test submodules on ORT's repo
Do not rely on the ORT repository to contain submodules. As recursive cloning is already covered by `DefaultNestedProvenanceResolverFunTest` and `GitRepoDownloadFunTest`, simply remove the test. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent f7d9782 commit dc0b307

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

plugins/version-control-systems/git/src/funTest/kotlin/GitWorkingTreeFunTest.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import kotlin.time.Duration.Companion.milliseconds
3333

3434
import kotlinx.coroutines.delay
3535

36-
import org.ossreviewtoolkit.downloader.VersionControlSystem
3736
import org.ossreviewtoolkit.downloader.WorkingTree
3837
import org.ossreviewtoolkit.model.VcsInfo
3938
import org.ossreviewtoolkit.model.VcsType
@@ -93,18 +92,6 @@ class GitWorkingTreeFunTest : WordSpec({
9392
"tag3"
9493
)
9594
}
96-
97-
"correctly lists submodules" {
98-
val expectedSubmodules = listOf(
99-
"plugins/package-managers/pub/src/funTest/assets/projects/external/dart-http",
100-
"plugins/package-managers/python/src/funTest/assets/projects/external/example-python-flask",
101-
"plugins/package-managers/python/src/funTest/assets/projects/external/spdx-tools-python",
102-
"plugins/package-managers/sbt/src/funTest/assets/projects/external/multi-project",
103-
"plugins/package-managers/stack/src/funTest/assets/projects/external/quickcheck-state-machine"
104-
).associateWith { VersionControlSystem.getPathInfo(File("../../../$it")) }
105-
106-
git.getWorkingTree(File("..")).getNested() shouldBe expectedSubmodules
107-
}
10895
}
10996

11097
"updateWorkingTree()" should {

0 commit comments

Comments
 (0)