gnu: python-afdko: Run tests in parallel.
* gnu/packages/fontutils.scm (python-afdko)[arguments]: Adjust check phase for parallel execution. [native-inputs]: Add PYTHON-PYTEST-XDIST.
This commit is contained in:
		
							parent
							
								
									7d4a1b8c0c
								
							
						
					
					
						commit
						937215d562
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -198,7 +198,8 @@ them as it goes.") | ||||||
|             (lambda* (#:key tests? #:allow-other-keys) |             (lambda* (#:key tests? #:allow-other-keys) | ||||||
|               (when tests? |               (when tests? | ||||||
|                 (setenv "HOME" "/tmp") |                 (setenv "HOME" "/tmp") | ||||||
|                 (invoke "pytest" "-vv")))) |                 (invoke "pytest" "-vv" "--dist" "loadfile" "-n" | ||||||
|  |                         (number->string (parallel-job-count)))))) | ||||||
|           (add-after 'check 'wrap |           (add-after 'check 'wrap | ||||||
|             (assoc-ref %standard-phases 'wrap)) |             (assoc-ref %standard-phases 'wrap)) | ||||||
|           (add-before 'wrap 'wrap-PATH |           (add-before 'wrap 'wrap-PATH | ||||||
|  | @ -217,6 +218,7 @@ them as it goes.") | ||||||
|            openjdk                      ;required by antlr4 |            openjdk                      ;required by antlr4 | ||||||
|            ninja |            ninja | ||||||
|            python-pytest |            python-pytest | ||||||
|  |            python-pytest-xdist | ||||||
|            python-scikit-build |            python-scikit-build | ||||||
|            python-setuptools-scm |            python-setuptools-scm | ||||||
|            python-wheel)) |            python-wheel)) | ||||||
|  |  | ||||||
		Reference in a new issue