From 894349cec86bd2d471d9d37e43f349c9ec95bcd1 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Wed, 11 Mar 2026 15:26:19 +0100 Subject: [PATCH] gnu: python-vunit: Implement parallel tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/electronics.scm (python-vunit)[arguments]: Set parallel flag in ’run-examples #:phase. Change-Id: If3460b4715f244fd52262f8a67cbc2e88a2dfafc --- gnu/packages/electronics.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 796a35e380..ab759462b1 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -3324,12 +3324,15 @@ to enforce it.") (string-append site-packages "osvvm"))))) (add-after 'check 'run-examples ;; Run examples as an extra check. - (lambda* (#:key tests? #:allow-other-keys) + (lambda* (#:key tests? parallel-build? #:allow-other-keys) (when tests? (with-directory-excursion "examples/vhdl" (for-each (lambda (dir) - (invoke "python3" (string-append dir "/run.py")) + (invoke "python3" (string-append dir "/run.py") + "-p" (if parallel-build? + (number->string (parallel-job-count)) + "1")) (delete-file-recursively "vunit_out")) (scandir "." (negate