From 82463c90c45e214c03a3be9e0e958032af9d12df Mon Sep 17 00:00:00 2001 From: Lehman Garrison Date: Tue, 3 Dec 2024 09:34:57 -0500 Subject: [PATCH] tests: don't fail on cleanup --- tests/test_slurm/run.sh | 3 ++- tests/test_ssh/run.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_slurm/run.sh b/tests/test_slurm/run.sh index eabb67a..eb302a3 100755 --- a/tests/test_slurm/run.sh +++ b/tests/test_slurm/run.sh @@ -39,4 +39,5 @@ cd - > /dev/null trap - ERR echo "Slurm test passed." -rm -rf $workdir +# NFS sometimes leaves stale file handles, but don't fail the test +rm -rf $workdir || true diff --git a/tests/test_ssh/run.sh b/tests/test_ssh/run.sh index 4d3f000..e55e2e4 100755 --- a/tests/test_ssh/run.sh +++ b/tests/test_ssh/run.sh @@ -39,4 +39,5 @@ cd - > /dev/null trap - ERR echo "SSH test passed." -rm -rf $workdir +# NFS sometimes leaves stale file handles, but don't fail the test +rm -rf $workdir || true