gnu: python-testtools: Honor #:tests? in check phase.
* gnu/packages/check.scm (python-testtools)[arguments]: Adjust custom 'check phase to honor #:tests.
This commit is contained in:
		
							parent
							
								
									db8e8eb171
								
							
						
					
					
						commit
						43bc7dd39c
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -1430,11 +1430,13 @@ subprocess and see the output as well as any file modifications.") | |||
|     (inherit python-testtools-bootstrap) | ||||
|     (name "python-testtools") | ||||
|     (arguments | ||||
|      `(#:phases (modify-phases %standard-phases | ||||
|      `(#:phases | ||||
|        (modify-phases %standard-phases | ||||
|          (replace 'check | ||||
|                     (lambda _ | ||||
|            (lambda* (#:key tests? #:allow-other-keys) | ||||
|              (when tests? | ||||
|                (invoke "python" "-m" "testtools.run" | ||||
|                               "testtools.tests.test_suite")))))) | ||||
|                        "testtools.tests.test_suite"))))))) | ||||
|     (propagated-inputs | ||||
|      `(("python-extras" ,python-extras) | ||||
|        ("python-fixtures" ,python-fixtures) | ||||
|  |  | |||
		Reference in a new issue