From 2e512e7cf7d95f8a0249c8e4fc3ede0720a719e0 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Mon, 3 Mar 2025 00:57:23 +0800 Subject: [PATCH] python3Packages.pytestCheckHook: fix disabledTestPaths glob matching assertion Errors in Bash's process substitution doesn't get propagated outside. Replace the process substitution with Python's `-` as /dev/stdin and Bash's heredoc stdin redirection. --- .../development/interpreters/python/hooks/pytest-check-hook.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index 855c770e31b1..ff95f73ba20c 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -18,7 +18,7 @@ function pytestCheckPhase() { concatTo _pathsArray disabledTestPaths for path in "${_pathsArray[@]}"; do # Check if every path glob matches at least one path - @pythonCheckInterpreter@ <(cat <