From 3e0641f91f7296dca67224babc221f3a161224e1 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 May 2022 12:42:50 +1000 Subject: tests: Don't ignore errors during script Most commands issued during the testing scripts aren't explicitly checked for errors. Therefore, if they fail, the shell will just keep on executing. This makes it difficult to figure out where things started going wrong if things fall over. Run the whole script with the set -e mode so that it will exit in the case of any (unchecked) failing command. To make this work we do need to add explicit checks / fallbacks for some commands which we expect to fail. Signed-off-by: David Gibson [sbrivio: use sh -e instead of setting -e later, so that we don't miss anything before set -e is issued] Signed-off-by: Stefano Brivio --- test/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/run') diff --git a/test/run b/test/run index a8e1c98..737fa81 100755 --- a/test/run +++ b/test/run @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e # # SPDX-License-Identifier: AGPL-3.0-or-later # -- cgit v1.2.3