edencommon: patch to increase test discovery timeout (#339781)
This commit is contained in:
commit
92fab67bb6
@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg=";
|
sha256 = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
|
||||||
|
# Test discovery timeout is bizarrely flaky on `x86_64-darwin`
|
||||||
|
./increase-test-discovery-timeout.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
cmakeFlags = lib.optionals stdenv.isDarwin [
|
cmakeFlags = lib.optionals stdenv.isDarwin [
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/eden/common/os/test/CMakeLists.txt b/eden/common/os/test/CMakeLists.txt
|
||||||
|
index a9f71443f8..be1423c455 100644
|
||||||
|
--- a/eden/common/os/test/CMakeLists.txt
|
||||||
|
+++ b/eden/common/os/test/CMakeLists.txt
|
||||||
|
@@ -18,4 +18,4 @@
|
||||||
|
${LIBGMOCK_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
-gtest_discover_tests(os_test)
|
||||||
|
+gtest_discover_tests(os_test DISCOVERY_TIMEOUT 25)
|
||||||
|
diff --git a/eden/common/utils/test/CMakeLists.txt b/eden/common/utils/test/CMakeLists.txt
|
||||||
|
index 0cac73e569..ff08ecccb8 100644
|
||||||
|
--- a/eden/common/utils/test/CMakeLists.txt
|
||||||
|
+++ b/eden/common/utils/test/CMakeLists.txt
|
||||||
|
@@ -34,4 +34,4 @@
|
||||||
|
${LIBGMOCK_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
-gtest_discover_tests(utils_test)
|
||||||
|
+gtest_discover_tests(utils_test DISCOVERY_TIMEOUT 25)
|
Loading…
Reference in New Issue
Block a user