gnu: mercurial: Run tests verbosely and respect settings.
* gnu/packages/version-control.scm (mercurial)[arguments]: Invoke ‘run-tests.py’ directly and verbosely. Respect #:tests? and parallel-job-count.master
parent
4a30c51eb8
commit
e2e62bf55a
|
@ -1244,26 +1244,35 @@ control to Git repositories.")
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; The following tests are known to fail.
|
(with-directory-excursion "tests"
|
||||||
(for-each (lambda (file)
|
;; The following tests are known to fail.
|
||||||
(delete-file (string-append "tests/" file)))
|
(for-each (lambda (file)
|
||||||
'("test-extdiff.t"
|
(delete-file file))
|
||||||
"test-hghave.t"
|
'("test-extdiff.t"
|
||||||
"test-hgwebdir.t"
|
"test-hghave.t"
|
||||||
"test-http-branchmap.t"
|
"test-hgwebdir.t"
|
||||||
"test-logtoprocess.t"
|
"test-http-branchmap.t"
|
||||||
"test-merge-combination.t"
|
"test-logtoprocess.t"
|
||||||
"test-nointerrupt.t"
|
"test-merge-combination.t"
|
||||||
"test-patchbomb.t"
|
"test-nointerrupt.t"
|
||||||
"test-pull-bundle.t"
|
"test-patchbomb.t"
|
||||||
"test-push-http.t"
|
"test-pull-bundle.t"
|
||||||
"test-run-tests.t"
|
"test-push-http.t"
|
||||||
"test-serve.t"
|
"test-run-tests.t"
|
||||||
"test-subrepo-deep-nested-change.t"
|
"test-serve.t"
|
||||||
"test-subrepo-recursion.t"
|
"test-subrepo-deep-nested-change.t"
|
||||||
"test-transplant.t"))
|
"test-subrepo-recursion.t"
|
||||||
(invoke "make" "check"))))))
|
"test-transplant.t"))
|
||||||
|
(when tests?
|
||||||
|
(invoke "./run-tests.py"
|
||||||
|
;; ‘make check’ does not respect ‘-j’.
|
||||||
|
(string-append "-j" (number->string
|
||||||
|
(parallel-job-count)))
|
||||||
|
;; The test suite takes a long time and produces little
|
||||||
|
;; output by default. Prevent timeouts due to silence.
|
||||||
|
"-v"))
|
||||||
|
#t))))))
|
||||||
;; The following inputs are only needed to run the tests.
|
;; The following inputs are only needed to run the tests.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)
|
`(("python-nose" ,python-nose)
|
||||||
|
|
Reference in New Issue