From a06063fcf9ec1f46b89a279e138d2f2ac3299822 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:56:58 -0500 Subject: [PATCH] use replace= in xargs --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6f71d7..631a514 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,4 +28,4 @@ jobs: - name: Run tests run: | xonsh -c "xontrib load pygitstatus" - bash -c "set -o pipefail && pytest --collect-only --quiet | grep -v 'tests collected' | xargs --max-procs=1 --max-args=1 sh -c 'pytest $0 || exit 255'" + bash -c "set -o pipefail && pytest --collect-only --quiet | grep -v 'tests collected' | xargs --replace='%0' --max-procs=1 --max-args=1 sh -c 'pytest %0 || exit 255'"