21453: Update CWL tests with new packaged virtualenv path
authorBrett Smith <brett.smith@curii.com>
Thu, 15 Feb 2024 20:46:24 +0000 (15:46 -0500)
committerBrett Smith <brett.smith@curii.com>
Thu, 15 Feb 2024 20:46:24 +0000 (15:46 -0500)
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

docker/jobs/Dockerfile
sdk/cwl/tests/arvados-tests.sh

index 371b9cc984ce224ed4d0f9e78296ed607057c8f4..05d8547c52a5126f36ecc79ae85e3a9f4658ac44 100644 (file)
@@ -20,4 +20,4 @@ RUN /usr/sbin/adduser --disabled-password \
     /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job
 
 USER crunch
-ENV PATH=/usr/share/python3.9/dist/python3-arvados-cwl-runner/bin:/usr/local/bin:/usr/bin:/bin
+ENV PATH=/usr/lib/python3-arvados-cwl-runner/bin:/usr/local/bin:/usr/bin:/bin
index 8f0c44c5532c9a8c63cd99ed2d822d05d632b134..0cf43405ec0fd09523110be2cee861b26df28ec8 100755 (executable)
@@ -24,7 +24,7 @@ if ! arv-get 20850f01122e860fb878758ac1320877+71 > /dev/null ; then
 fi
 
 # Use the python executor associated with the installed OS package, if present.
-python=$(((ls /usr/share/python3*/dist/python3-arvados-cwl-runner/bin/python || ls /opt/arvados-py/bin/python || echo python3) | head -n1) 2>/dev/null)
+python="$(PATH="/usr/lib/python3-arvados-cwl-runner/bin:/opt/arvados-py/bin:$PATH" command -v python3)"
 
 # Test for #18888
 # This is a standalone test because the bug was observed with this