[autotest-client-tests][PATCH 3/3] UBUNTU: SAUCE: ubuntu_nvidia_server_driver: nvidia-fs: Use pipefail to fail early
dann frazier
dann.frazier at canonical.com
Tue Jun 21 21:21:53 UTC 2022
I ran this test w/ a misconfigured host (no nvidia driver). But the
nvidia-smi command failure went unnoticed because the output is piped
to another command that did not fail.
Signed-off-by: dann frazier <dann.frazier at canonical.com>
---
ubuntu_nvidia_server_driver/nvidia-fs/01-run-test.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/ubuntu_nvidia_server_driver/nvidia-fs/01-run-test.sh b/ubuntu_nvidia_server_driver/nvidia-fs/01-run-test.sh
index fbb6368e..884dd346 100755
--- a/ubuntu_nvidia_server_driver/nvidia-fs/01-run-test.sh
+++ b/ubuntu_nvidia_server_driver/nvidia-fs/01-run-test.sh
@@ -2,6 +2,7 @@
set -e
set -x
+set -o pipefail
shopt -s nullglob
--
2.36.1
More information about the kernel-team
mailing list