Skip to content

Commit 56a6d18

Browse files
nnobelissschuberth
authored andcommitted
test(bazel): Run funTests after the Conan package manager ones
Do not run the `funTest` tasks from the `bazel` project in parallel with the Conan package manager ones, as it seems to create conflict related to the Conan configuration database. Signed-off-by: Nicolas Nobelis <[email protected]>
1 parent 0c6934d commit 56a6d18

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/package-managers/bazel/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,11 @@ dependencies {
5252
funTestImplementation(testFixtures(projects.analyzer))
5353
funTestImplementation(projects.plugins.packageManagers.conanPackageManager)
5454
}
55+
56+
tasks.named<Test>("funTest") {
57+
val conanPackageManagerProject = project.project(projects.plugins.packageManagers.conanPackageManager.path)
58+
val conanPackageManagerFunTestTask = conanPackageManagerProject.tasks.named<Test>("funTest")
59+
60+
// Prevent conflicts with the Conan configuration database by running after the Conan package manager tests.
61+
mustRunAfter(conanPackageManagerFunTestTask)
62+
}

0 commit comments

Comments
 (0)