matrix-synapse: disable test parallelism on aarch64-linux

No idea why, but the tests - a random amount of tests to be precise -
fail on aarch64 on each attempt I made. Not reproducible on
x86_64-linux. Disabling parallelism appears to solve the issue.
This commit is contained in:
Maximilian Bosch
2023-06-12 17:50:33 +02:00
parent bd77d4ae46
commit a88de40ede
+2 -2
View File
@@ -86,13 +86,13 @@ buildPythonApplication rec {
doCheck = !stdenv.isDarwin;
checkPhase = ''
checkPhase = let testFlags = lib.optionalString (!stdenv.isAarch64) "-j $NIX_BUILD_CORES"; in ''
runHook preCheck
# remove src module, so tests use the installed module instead
rm -rf ./synapse
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tests
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial ${testFlags} tests
runHook postCheck
'';