From f23f1cbac6f18e1e09be4f03cce397a07a837384 Mon Sep 17 00:00:00 2001 From: John A Meinel Date: Fri, 1 Nov 2024 14:20:48 +0100 Subject: [PATCH] fix: the github workflow was failing on Mac it was supposed to be skipped, but we were using `uname --kernel-name` but mac only supports the short flags `uname -s` --- .github/workflows/tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7c60c65fa..a7265e9fc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -117,7 +117,8 @@ jobs: - name: Run tests shell: bash run: | - if [[ $(uname --kernel-name) == "Linux" ]]; then + # -s == --kernel-name, but the long form isn't available on Mac OSX + if [[ $(uname -s) == "Linux" ]]; then export XDG_RUNTIME_DIR=/run/user/$(id -u) fi tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json --colored yes -m tests