mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: awscli-2: Run tests.
* gnu/packages/python-web.scm (awscli-2)[arguments]: Disable some tests via test-flags; uncomment execution of test script. Change-Id: I2d037ad365cff298f8ddcf9b8f5886ee17fcf0dd
This commit is contained in:
parent
6d040c9723
commit
7bab6152f7
1 changed files with 24 additions and 6 deletions
|
@ -4700,6 +4700,13 @@ Services (AWS) API.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags
|
||||||
|
;; The resource leak tests use ps to check for memory consumption.
|
||||||
|
'(list "--ignore=functional/botocore/leak/test_resource_leaks.py"
|
||||||
|
;; These tests complain about unavailable TLS certs.
|
||||||
|
"--ignore=functional/ec2instanceconnect/test_opentunnel.py"
|
||||||
|
;; These seem to require Internet access.
|
||||||
|
"--ignore=unit/botocore/test_awsrequest.py")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'ignore-deprecations
|
(add-after 'unpack 'ignore-deprecations
|
||||||
|
@ -4715,16 +4722,25 @@ Services (AWS) API.")
|
||||||
(search-input-file inputs "bin/groff")
|
(search-input-file inputs "bin/groff")
|
||||||
"'")))))
|
"'")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
|
(let ((skip-args
|
||||||
|
(string-append
|
||||||
|
"-k" "\""
|
||||||
|
;; No idea why this fails.
|
||||||
|
"not test_no_groff_or_mandoc_exists"
|
||||||
|
;; Needs $HOME
|
||||||
|
" and not test_attach_history_handler"
|
||||||
|
;; Complains about TLS certs.
|
||||||
|
" and not test_command_returns_shutdown_exception"
|
||||||
|
"\"")))
|
||||||
(substitute* "scripts/ci/run-tests"
|
(substitute* "scripts/ci/run-tests"
|
||||||
(("--numprocesses=auto --dist=loadfile --maxprocesses=4") ""))
|
(("--numprocesses=auto" m)
|
||||||
;; For an unknown reason pytest receives SIGTERM and no tests
|
(string-join (cons* m skip-args test-flags) " "))))
|
||||||
;; are run..
|
|
||||||
#;
|
|
||||||
(invoke "python" "scripts/ci/run-tests")))))))
|
(invoke "python" "scripts/ci/run-tests")))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list groff
|
(list groff
|
||||||
|
nss-certs-for-test
|
||||||
python-awscrt-for-awscli
|
python-awscrt-for-awscli
|
||||||
python-colorama
|
python-colorama
|
||||||
python-botocore
|
python-botocore
|
||||||
|
@ -4732,6 +4748,7 @@ Services (AWS) API.")
|
||||||
python-dateutil
|
python-dateutil
|
||||||
python-docutils
|
python-docutils
|
||||||
python-jmespath
|
python-jmespath
|
||||||
|
python-jsonschema
|
||||||
python-prompt-toolkit
|
python-prompt-toolkit
|
||||||
python-ruamel.yaml-0.16
|
python-ruamel.yaml-0.16
|
||||||
python-ruamel.yaml.clib
|
python-ruamel.yaml.clib
|
||||||
|
@ -4740,6 +4757,7 @@ Services (AWS) API.")
|
||||||
(list python-distro
|
(list python-distro
|
||||||
python-flit
|
python-flit
|
||||||
python-pytest
|
python-pytest
|
||||||
|
python-pytest-xdist
|
||||||
python-wheel))))
|
python-wheel))))
|
||||||
|
|
||||||
;; This is not an official release of awscli version 2, so it should not be
|
;; This is not an official release of awscli version 2, so it should not be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue