mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: python-scikit-build: Skip more network tests.
* gnu/packages/python-xyz.scm (python-scikit-build)[arguments]: Add a phase to mark more network tests as isolated to easily skip them. Change-Id: I2f955182f411a68550fbd3c356bfda5584091428
This commit is contained in:
parent
f544968514
commit
73158a5f62
1 changed files with 7 additions and 0 deletions
|
@ -33505,6 +33505,13 @@ (define-public python-scikit-build
|
|||
(("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head)
|
||||
(format #f "~a ~s~%" head
|
||||
(search-input-file inputs "bin/cmake"))))))
|
||||
(add-before 'check 'pre-check
|
||||
(lambda _
|
||||
;; Some tests try to access the network before being skipped.
|
||||
;; Skip them by default.
|
||||
(substitute* "tests/test_setup.py"
|
||||
(("pytest\\.mark\\.skipif\\(not is_site_reachable.*")
|
||||
"pytest.mark.isolated()\n"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
|
Loading…
Reference in a new issue