From fa3431cf37b3d3e48a296771d0026f6e8073a6e3 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 30 Nov 2021 12:15:34 -0800 Subject: [PATCH] Ignore errors when running df in build_test.bash On glinux, df -h prints an "Operation not permitted" error along with the rest of the output, and exits with status code 1, causing the rest of the build_test script to not run. Ignore this error. Test: Running build_test.bash Change-Id: I5422d0459ed471671d8d99a883c9ac3fca2e91b8 --- build_test.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_test.bash b/build_test.bash index b039285ca..b6d00e23f 100755 --- a/build_test.bash +++ b/build_test.bash @@ -50,7 +50,9 @@ esac echo echo "Free disk space:" -df -h +# Ignore df errors because it errors out on gvfsd file systems +# but still displays most of the useful info we need +df -h || true echo echo "Running Bazel smoke test..."