From d1bcd09890d298fd59157f1994061ff9067f5c67 Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Thu, 23 Jan 2025 15:37:41 -0500 Subject: [PATCH] Return nonzero error code if cd fails --- ci/run_cuml_dask_pytests.sh | 2 +- ci/run_cuml_singlegpu_accel_pytests.sh | 2 +- ci/run_cuml_singlegpu_memleak_pytests.sh | 2 +- ci/run_cuml_singlegpu_pytests.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/run_cuml_dask_pytests.sh b/ci/run_cuml_dask_pytests.sh index fa0eaaa6f5..3063e68414 100755 --- a/ci/run_cuml_dask_pytests.sh +++ b/ci/run_cuml_dask_pytests.sh @@ -2,6 +2,6 @@ # Copyright (c) 2024-2025, NVIDIA CORPORATION. # Support invoking run_cuml_dask_pytests.sh outside the script directory -cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests/dask || exit +cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests/dask || exit 1 python -m pytest --cache-clear "$@" . diff --git a/ci/run_cuml_singlegpu_accel_pytests.sh b/ci/run_cuml_singlegpu_accel_pytests.sh index 76558c71ae..449cc0a098 100755 --- a/ci/run_cuml_singlegpu_accel_pytests.sh +++ b/ci/run_cuml_singlegpu_accel_pytests.sh @@ -2,6 +2,6 @@ # Copyright (c) 2024-2025, NVIDIA CORPORATION. # Support invoking run_cuml_singlegpu_pytests.sh outside the script directory -cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests/experimental/accel || exit +cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests/experimental/accel || exit 1 python -m pytest -p cuml.experimental.accel --cache-clear "$@" . diff --git a/ci/run_cuml_singlegpu_memleak_pytests.sh b/ci/run_cuml_singlegpu_memleak_pytests.sh index e8f7bb35c1..dfe2113a89 100755 --- a/ci/run_cuml_singlegpu_memleak_pytests.sh +++ b/ci/run_cuml_singlegpu_memleak_pytests.sh @@ -2,6 +2,6 @@ # Copyright (c) 2024-2025, NVIDIA CORPORATION. # Support invoking run_cuml_singlegpu_pytests.sh outside the script directory -cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests || exit +cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests || exit 1 python -m pytest --cache-clear --ignore=dask -m "memleak" "$@" . diff --git a/ci/run_cuml_singlegpu_pytests.sh b/ci/run_cuml_singlegpu_pytests.sh index 5fd5d88db4..336e081d49 100755 --- a/ci/run_cuml_singlegpu_pytests.sh +++ b/ci/run_cuml_singlegpu_pytests.sh @@ -2,6 +2,6 @@ # Copyright (c) 2024-2025, NVIDIA CORPORATION. # Support invoking run_cuml_singlegpu_pytests.sh outside the script directory -cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests || exit +cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cuml/cuml/tests || exit 1 python -m pytest --cache-clear --ignore=dask -m "not memleak" "$@" .