From patchwork Mon Aug 3 11:02:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 27543 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id C669FBE080 for ; Mon, 3 Aug 2026 11:02:52 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DCF7068060; Mon, 3 Aug 2026 13:02:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="n5VWx459"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 82D0867EE4 for ; Mon, 3 Aug 2026 13:02:50 +0200 (CEST) Received: from pb-laptop.local (185.221.141.208.nat.pool.zt.hu [185.221.141.208]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 84560887 for ; Mon, 3 Aug 2026 13:01:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1785754901; bh=OVZVlDAB2PCn0OL93+/sztNnd5cwmGVawnyqgPDOnwI=; h=From:To:Subject:Date:From; b=n5VWx4598zkfbUBeqWFPF0y/OAcQNiCNj6617h9ODohN3x8Q+kjGrFCrHUpWJUP4K /wWJfqkcvW0o16rsw8k3GxtzRxN+6WFZ5vJG0xTHyUcEx+QB394eZxkY0Pqm74Kt4Z qO7gXqZoW8veoz1ikFUKgPu06g9jLRa2cEZWo1iw= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [libcamera-ci] [PATCH v1] lib: find_base(): Print error messages to stderr Date: Mon, 3 Aug 2026 13:02:47 +0200 Message-ID: <20260803110247.109811-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Otherwise they will not be shown when used e.g. as base=$(find_base ...) Signed-off-by: Barnabás Pőcze --- .gitlab-ci/lib.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.55.0 diff --git a/.gitlab-ci/lib.sh b/.gitlab-ci/lib.sh index c804eee..4eb7000 100755 --- a/.gitlab-ci/lib.sh +++ b/.gitlab-ci/lib.sh @@ -15,14 +15,14 @@ find_base() { local base=$(git merge-base $r1 $r2) if [[ -z $base ]] ; then - echo "No common ancestor between $r1 and $r2." - echo "Make sure your master branch is up-to-date." + echo "No common ancestor between $r1 and $r2." >&2 + echo "Make sure your master branch is up-to-date." >&2 exit 1 fi if [[ $(git log --oneline $base..$r2 | wc -l) -gt 50 ]] ; then - echo "Common ancestor $base of $r1 and $r2 is too far in history." - echo "Make sure your master branch is up-to-date." + echo "Common ancestor $base of $r1 and $r2 is too far in history." >&2 + echo "Make sure your master branch is up-to-date." >&2 exit 1 fi