3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #237379 from Ma27/synapse-tests-aarch64

matrix-synapse: disable test parallelism on aarch64-linux
This commit is contained in:
Martin Weinelt 2023-06-12 18:22:54 +02:00 committed by GitHub
commit 3a785fc61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
'';