Skip to content

Commit

Permalink
Merge pull request #145022 from thiagokokada/zhf-sanic-aarch64-linux
Browse files Browse the repository at this point in the history
python3Packages.sanic: disable failing tests on aarch64-linux
  • Loading branch information
domenkozar authored Nov 14, 2021
2 parents 07715e7 + 5852435 commit 0f95172
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkgs/development/python-modules/sanic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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
Expand Down

0 comments on commit 0f95172

Please sign in to comment.