me
/
guix
Archived
1
0
Fork 0

gnu: python-debugpy: Disable tests.

* gnu/packages/python-xyz.scm (python-debugpy)[arguments]: Respect
tests? in 'check phase and disable #:tests.
Lars-Dominik Braun 2022-06-09 10:35:33 +02:00
parent 9d2ef7344e
commit 3e6bc1edca
No known key found for this signature in database
GPG Key ID: F663943E08D8092A
1 changed files with 13 additions and 11 deletions

View File

@ -12406,6 +12406,7 @@ and other @acronym{IDEs, Integrated Development Environments}.")
(build-system python-build-system)
(arguments
(list
#:tests? #f ; Fail on systems with YAMA LSMs ptrace scope > 0.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-sh-in-tests
@ -12426,17 +12427,18 @@ and other @acronym{IDEs, Integrated Development Environments}.")
(setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k"
(string-append
;; These tests cannot be run in parallel because their
;; test data would not be copied by xdist and lead to
;; import errors. (see:
;; https://github.com/microsoft/debugpy/issues/342 and
;; https://github.com/microsoft/debugpy/issues/880).
"not test_custom_python_args "
"and not test_autokill ")))))))
(when tests?
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k"
(string-append
;; These tests cannot be run in parallel because their
;; test data would not be copied by xdist and lead to
;; import errors. (see:
;; https://github.com/microsoft/debugpy/issues/342 and
;; https://github.com/microsoft/debugpy/issues/880).
"not test_custom_python_args "
"and not test_autokill "))))))))
(native-inputs
;; See: https://raw.githubusercontent.com/microsoft/debugpy/
;; main/tests/requirements.txt.