]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Enable error code checks for load-testconfig
authorMaxim Uvarov <muvarov@gmail.com>
Mon, 24 Jun 2024 14:05:20 +0000 (17:05 +0300)
committerTobias Brunner <tobias@strongswan.org>
Wed, 26 Jun 2024 12:55:52 +0000 (14:55 +0200)
Errors in load-testconfig are hidden due to not checking scp
return code and mute all errors. Add -e to trap script on
any errors in this script.

References strongswan/strongswan#2310

Signed-off-by: Maxim Uvarov <muvarov@gmail.com>
testing/scripts/load-testconfig

index 7deaa1e85f32761aab05a2bd8716ff2b077f4737..3101467d6e96892330ced0d90330fd7497355006 100755 (executable)
@@ -19,6 +19,8 @@ DIR=$(dirname `readlink -f $0`)
 . $DIR/function.sh
 SSHCONF="-F $DIR/../ssh_config"
 
+set -e
+
 ##########################################################################
 # load-testconfig requires a testname as an argument
 #