diff mbox series

[userspace,4/4] ci: fix pypy conditional

Message ID 20250103100203.32580-5-omosnace@redhat.com (mailing list archive)
State New
Delegated to: Ondrej Mosnáček
Headers show
Series ci: fix and migrate the testsuite part to Testing Farm | expand

Commit Message

Ondrej Mosnacek Jan. 3, 2025, 10:02 a.m. UTC
The operator = doesn't do pattern matching in [[ ... ]] - operator ==
must be used instead.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 .github/workflows/run_tests.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 63c26210..ed60921a 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -123,7 +123,7 @@  jobs:
         PYTHON_SYS_PREFIX="$(python -c 'import sys;print(sys.prefix)')"
         echo "PKG_CONFIG_PATH=${PYTHON_SYS_PREFIX}/lib/pkgconfig" >> $GITHUB_ENV
 
-        if [[ "${{ matrix.python-ruby-version.python }}" = pypy* ]] ; then
+        if [[ "${{ matrix.python-ruby-version.python }}" == pypy* ]] ; then
             # PyPy does not provide a config file for pkg-config
             # libpypy-c.so is provided in bin/libpypy-c.so for PyPy and bin/libpypy3-c.so for PyPy3
             echo "PYINC=-I${PYTHON_SYS_PREFIX}/include" >> $GITHUB_ENV