Merge pull request #145022 from thiagokokada/zhf-sanic-aarch64-linux

python3Packages.sanic: disable failing tests on aarch64-linux
This commit is contained in:
Domen Kožar
2021-11-14 08:45:29 -06:00
committed by GitHub
@@ -67,8 +67,8 @@ buildPythonPackage rec {
inherit doCheck;
preCheck = ''
# Some tests depends on executables on PATH
PATH="$out/bin:${gunicorn}/bin:$PATH"
# Some tests depends on sanic on PATH
PATH="$out/bin:$PATH"
'';
disabledTests = [
@@ -86,6 +86,16 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [
# https://github.com/sanic-org/sanic/issues/2298
"test_no_exceptions_when_cancel_pending_request"
] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
# These appear to be very sensitive to output of commands
# Output is different on aarch64
"test_server_run"
"test_host_port"
"test_num_workers"
"test_access_logs"
"test_version"
# Failing for a different reason than Darwin
"test_no_exceptions_when_cancel_pending_request"
];
# avoid usage of nixpkgs-review in darwin since tests will compete usage