aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah Rumancik <leah.rumancik@gmail.com>2023-01-18 13:52:03 -0800
committerLeah Rumancik <leah.rumancik@gmail.com>2023-01-30 13:49:36 -0800
commit27587457d42f6746fa36d44a18afd0266cb1a96a (patch)
tree11391ddad9632a939ff1b7ae3be2cf9e368dbc91
parent220b863e1f3891b528285e9762c541451601ce11 (diff)
downloadxfstests-bld-27587457d42f6746fa36d44a18afd0266cb1a96a.tar.gz
gce-xfstests: check return value of send_to_[ltm|kcs]
Exit with error if send_to_[ltm|kcs] fails. Passing along the return value is useful for selftests. Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
-rwxr-xr-xrun-fstests/gce-xfstests8
1 files changed, 6 insertions, 2 deletions
diff --git a/run-fstests/gce-xfstests b/run-fstests/gce-xfstests
index 0ceca6b6..589de88f 100755
--- a/run-fstests/gce-xfstests
+++ b/run-fstests/gce-xfstests
@@ -1165,7 +1165,9 @@ fi
if test -n "$RUN_ON_LTM"; then
. "$DIR/util/gce-ltm-funcs"
- send_to_ltm $ORIG_CMDLINE_B64
+ if ! send_to_ltm $ORIG_CMDLINE_B64; then
+ exit 1
+ fi
exit 0
elif test -n "$RUN_ON_KCS"; then
if ! gsutil -q stat "gs://$GS_BUCKET/build_config" &> /dev/null
@@ -1175,7 +1177,9 @@ elif test -n "$RUN_ON_KCS"; then
gsutil cp "$DIR/../kernel-build/kernel-configs/x86_64-config-5.4" "gs://$GS_BUCKET/build_config"
fi
. "$DIR/util/gce-kcs-funcs"
- send_to_kcs $ORIG_CMDLINE_B64
+ if ! send_to_kcs $ORIG_CMDLINE_B64; then
+ exit 1
+ fi
exit 0
fi