From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mYa5f-0000cL-2x for mharc-grub-devel@gnu.org; Thu, 07 Oct 2021 16:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYa5d-0000Yn-QS for grub-devel@gnu.org; Thu, 07 Oct 2021 16:34:05 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:38578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYa5a-0003Cf-M8 for grub-devel@gnu.org; Thu, 07 Oct 2021 16:34:05 -0400 Received: by mail-qk1-x734.google.com with SMTP id w14so7334114qkf.5 for ; Thu, 07 Oct 2021 13:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ngw2s7hOfWN6d08mB20iPcVt5y6hwk0kU4HWD4wHyT8=; b=0gZZG+5TkSikWig0HMTUnfSciBELX69t7pS7ZVZ5mNkkTAnPoIYUIgO1IYdGs5K7s6 t+CBzim6NXd28Rgh0j47zIJzr9ZyfeQUsgotxE/Qgurr7TtTWwJCSSDCyYvL+AjF9Xx2 gnhCtIfLEihH8ATpIHrNPsr8i2LTDlu+ZpWZNLdXDtooLgDxeKuNx31Z62p556kNKJDK 4rdBkiYva6eVYcCyqQUmrexXmng4r28Mc/R+h2LTMDwFNBvPKgFDjgoeH8QME7NPBxAp L3T4uL4jTddOeru1iffORVkyFR/tqDGiV550cjSH3MWCb/hnSlBjN0Ibqx5bmBAlpB2S aTdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ngw2s7hOfWN6d08mB20iPcVt5y6hwk0kU4HWD4wHyT8=; b=wD6qT/30hL5fVtqsW/JNT/Zq7Fl/VX17jEubW+IQAHDW+uY2j+BnCuVrZmllPLHeX4 EadVLTYBlfYoe4+BjYvLrsJygj2R2GsqXIypsvu/sEL5636g+zXARIP+XVD4+mI59YzH JVW+paBwS6yo2U3N/T+PRXojSlPbvEAtdnFDWpaSP+of5VwN/dbgCJd9095+bQ0ejw+1 40aO+4AJxZh+KbYTs9kfNRmEP+e6O7Y/UZVHoEbB5i/zy1hTFDo7S6vd5ziZwBpLGmzE RL7nKwSXluwGnQMPT/R5BPgSXvnPAP/v22jaeTV/V3mwcDbjeJ3C3pIwtCeTugymQark MMnA== X-Gm-Message-State: AOAM533eYP0P8pvPDJlaWZ6dMx/J63WetfAHLzY3/M0xEa2ebcdYHC79 FZ9JsishSk3W/eOZ3CdNxzq28/5Ci5vdcA== X-Google-Smtp-Source: ABdhPJyO1qbrWmaAqAc78O6bVmwVtOpimiL5QUW6yGnBKEUQb0TFRL36vx47yfFD1RWCTJlF757uSA== X-Received: by 2002:a37:9dce:: with SMTP id g197mr3031726qke.257.1633638841560; Thu, 07 Oct 2021 13:34:01 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id p187sm374106qkd.101.2021.10.07.13.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 13:34:01 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v3 1/4] tests: Add set -e to missing tests Date: Thu, 7 Oct 2021 15:33:24 -0500 Message-Id: <20211007203327.159098-2-development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211007203327.159098-1-development@efficientek.com> References: <20211007203327.159098-1-development@efficientek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=development@efficientek.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 20:34:06 -0000 This helps to ensure that error codes do not get ignored. Signed-off-by: Glenn Washburn --- tests/grub_cmd_test.in | 1 + tests/grub_script_blockarg.in | 1 + tests/test_sha512sum.in | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/grub_cmd_test.in b/tests/grub_cmd_test.in index 20473b62d..043c3a634 100644 --- a/tests/grub_cmd_test.in +++ b/tests/grub_cmd_test.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # create a randome file empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99 diff --git a/tests/grub_script_blockarg.in b/tests/grub_script_blockarg.in index 3739a95e3..a91c7ca82 100644 --- a/tests/grub_script_blockarg.in +++ b/tests/grub_script_blockarg.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # Run GRUB script in a Qemu instance # Copyright (C) 2010 Free Software Foundation, Inc. diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in index 65953153f..b2bd89609 100644 --- a/tests/test_sha512sum.in +++ b/tests/test_sha512sum.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # create a randome file file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99 -- 2.27.0