X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/095e176632bbf81d28a239742a1ecce12404bd2d..352bc8e7263b020be295861cb6bde60203f681f7:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 55099afdf7..1742e68df8 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -14,7 +14,6 @@ leave_running=0 config=dev devcwl=0 tag="latest" -pythoncmd=python3 suite=conformance runapi=containers reinstall=0 @@ -51,7 +50,7 @@ while test -n "$1" ; do shift ;; --pythoncmd) - pythoncmd=$2 + echo "warning: --pythoncmd option is no longer supported; ignored" >&2 shift ; shift ;; --suite) @@ -63,7 +62,7 @@ while test -n "$1" ; do shift ; shift ;; -h|--help) - echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--pythoncmd python(2|3)] [--suite (integration|conformance-v1.0|conformance-*)]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--suite (integration|conformance-v1.0|conformance-*)]" exit ;; *) @@ -99,16 +98,8 @@ set -eu -o pipefail . /usr/local/lib/arvbox/common.sh -export PYCMD=$pythoncmd - if test $config = dev -o $reinstall = 1; then - cd /usr/src/arvados/sdk/python - \$PYCMD setup.py sdist - pip_install \$(ls -r dist/arvados-python-client-*.tar.gz | head -n1) - - cd /usr/src/arvados/sdk/cwl - \$PYCMD setup.py sdist - pip_install \$(ls -r dist/arvados-cwl-runner-*.tar.gz | head -n1) + pip_install_sdist sdk/python sdk/cwl fi set -x @@ -117,11 +108,7 @@ set -x # our files are in Keep, all the tests fail. # We should add [optional] Arvados support to cwltest so it can access # Keep but for the time being just install the last working version. -if [ "\$PYCMD" = "python3" ]; then - pip3 install 'cwltest<2.3.20230527113600' -else - pip install 'cwltest<2.3.20230527113600' -fi +/opt/arvados-py/bin/pip install 'cwltest<2.3.20230527113600' mkdir -p /tmp/cwltest cd /tmp/cwltest @@ -148,7 +135,7 @@ if [[ "$suite" = "conformance-v1.1" ]] ; then fi if [[ "$suite" = "conformance-v1.2" ]] ; then - git checkout 1.2.1_proposed + git checkout v1.2.1 fi #if [[ "$suite" != "integration" ]] ; then @@ -191,7 +178,7 @@ if [[ "$suite" = "integration" ]] ; then cd /usr/src/arvados/sdk/cwl/tests exec ./arvados-tests.sh $@ elif [[ "$suite" = "conformance-v1.2" ]] ; then - exec cwltest --tool arvados-cwl-runner --test conformance_tests.yaml -Sdocker_entrypoint,timelimit_invalid_wf -N307 $@ -- \$EXTRA + exec cwltest --tool arvados-cwl-runner --test conformance_tests.yaml -Sdocker_entrypoint $@ -- \$EXTRA elif [[ "$suite" = "conformance-v1.1" ]] ; then exec cwltest --tool arvados-cwl-runner --test conformance_tests.yaml -Sdocker_entrypoint,timelimit_invalid_wf -N199 $@ -- \$EXTRA elif [[ "$suite" = "conformance-v1.0" ]] ; then