python3Packages.sanic: disable failing tests on aarch64-linux
This commit is contained in:
parent
86c688e46f
commit
58524356c4
1 changed files with 12 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, gunicorn
|
, gunicorn
|
||||||
, httptools
|
, httptools
|
||||||
, multidict
|
, multidict
|
||||||
|
@ -68,8 +67,8 @@ buildPythonPackage rec {
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Some tests depends on executables on PATH
|
# Some tests depends on sanic on PATH
|
||||||
PATH="$out/bin:${gunicorn}/bin:$PATH"
|
PATH="$out/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
@ -87,6 +86,16 @@ buildPythonPackage rec {
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# https://github.com/sanic-org/sanic/issues/2298
|
# https://github.com/sanic-org/sanic/issues/2298
|
||||||
"test_no_exceptions_when_cancel_pending_request"
|
"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
|
# avoid usage of nixpkgs-review in darwin since tests will compete usage
|
||||||
|
|
Loading…
Reference in a new issue