on develop help sign in
Merge pull request #266 from reflex-frp/fix-gc-tests-in-sandbox

Fix tests that use a browser with sandbox enabled build

commit1ced68169ddd67fae5d2cdd38603ff3f80bee7f5 authorRyan Trinkle <ryan.trinkle@gmail.com> dateFri 4 Jan 2019, 19:17 (8 years ago) parent1fa33a140c61b1
1 file changed+6−1
reflex-dom-core/default.nix+6−1
reflex-dom-core/default.nix+6−1
@@ -5,7 +5,7 @@
55, monad-control, mtl, primitive, ref-tf, reflex, semigroups, stdenv
66, stm, template-haskell, temporary, text, these, transformers
77, unix, zenc, hashable, chromium, process, jsaddle-warp
8−, linux-namespaces, iproute, network-uri
8+, linux-namespaces, iproute, network-uri, fontconfig
99}:
1010let addGcTestDepends = drv: if stdenv.system != "x86_64-linux" then drv else drv // {
1111 testHaskellDepends = (drv.testHaskellDepends or []) ++ [ temporary jsaddle-warp process linux-namespaces ];
@@ -34,6 +34,11 @@ in mkDerivation (addGcTestDepends {
3434 export HOME="$PWD"
3535 '';
3636
37+ # The headless browser run as part of gc tests would hang/crash without this
38+ preCheck = ''
39+ export FONTCONFIG_PATH=${fontconfig.out}/etc/fonts
40+ '';
41+
3742 # Show some output while running tests, so we might notice what's wrong
3843 testTarget = "--show-details=streaming";
3944