From patchwork Fri Dec 4 17:41:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107352 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2609.1796406081054332367 for ; Fri, 04 Dec 2026 09:41:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=XsBj7G1p; spf=pass (domain: baylibre.com, ip: 209.85.221.180, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-5f016232630so300173e0c.3 for ; Fri, 04 Dec 2026 09:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406080; x=1797010880; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ByzL6VU1uDQ+9Qf4R1VarNc3fKHa3hmm5/Ssy/EIXdQ=; b=XsBj7G1pky9Dv+e68CEC+BzAb0TLeaHaNFbr5hCBoAazhLYEI1ib3qBupQUmkBzVOB 6rYJtGNNpDpTsZO1S86OhFv8f/vLdI2VmTJe5GjEfhunTDshZWtDUFafwUQa08pTM47v Lw76pmHTnL/TevVlhrzx7tBGoXxtL7squ+5AkdNRwOkvOe1og4rWNCDF2DP/1bQc3vh9 tdyI+ej9lA8QISBnByyQjCHfarVIjajBQ5h3/srJfqqJcm/XEgxd8qXoxfoSuvDZ1dwV LHI+rRqEOvQ1P11GTtryqeQB2X8DplMOplx2y6aVhh70gVdqlsl9GwIvA0aG4OCWFnuY jhxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406080; x=1797010880; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=ByzL6VU1uDQ+9Qf4R1VarNc3fKHa3hmm5/Ssy/EIXdQ=; b=x090qmLCqj9r2NGn2ybQQ8uIe6LbWye7OkBEC6Uk9CF51fRMC2eBN+tezel1ZqdtH2 2Pf8VnvpElGdekHTnpV0EzhFn3Wmzf6BhU6ApO0dZHT2eaRaSLjYSpHxgyzfOH/QxKui U8MjqtHjjK6iohRreaqtir2j5uChlTubs5W6bcwxCX6nQfytj00MLJlSCmBJZvQxj4jo 0/xxjsYLEOQuVkJ2JGGFCh1swyQlKjm+4LNFsCoreTrU+aLnLsI0LBJhTK45404u1+OC ivqkB2qtO+l598CedvLv0GxJoAN6hizPNnsK28kJ3fV3G22q3uHcEPI8qJdI/li5uWmo p/iw== X-Gm-Message-State: APuU4Z/AsjWXdsj2RZeaWBYKpgILz7ZTKWgA+qKO9zcQbBOYUf0oOgd+ USUh6tAK9Flh6z5SuaMXMOYkkDUP1WZ4sz+1uxdKY3poIm3g67i+vQVIBPpsq7XtaGwRtk8NEgP F5yRCk5U= X-Gm-Gg: AZFdTZdhHYItMM60nXO65DbT/sNvo3o/en2uF8mzKJLOh3yRsetS2lCDxvkzKx9MPLp hVJPLiAlewT6LTC+d7iXZlUCGjLVNVZwFn9SDVqMzFGs46A+Y2yx6fRkg445yXmXVdiDlYzu1La d1NOaHT8kGAAZMC9Ukb5aI/7/PwfuEvcRzjdleErco6GrR3sPaiJ6LjW6coMAV+krFnqaW1hpjU AIyL5Q8/0+PDUzRliCWmeEjUZWXm4YAbCj2eL1dpaBHpD7cNVZ3ScDkPs1+An/C8RyY/fXNt78+ 3aHiY8zK8oq6glKLINiQEfZ3zhJ+yz3YOqcC9Geibsw3aTShu806WiBxOKVP/FcalVwkOg74D5b VceL13CoAserbOXt2hNgEuyCWeUkZLy0vJgrx6CxvG+fjd/P34F/Ekfpd3ai7UcZUwG97/m8Fke jL75GVKIPom46rdVl01Y1ekEbdX8DsCxoyC0hvBvRKxJRk9C3Xc7v2SqFCPDapz2nPTnhXpTmYd yO2bQlexcpAdxOCEIEAEaIGtmdS+gIY6RlS9M3vzWJEwGVceu/uEAvKCedixxyhnDgqfMyia6az beT90KVt4xJ8ccbueH6rh30FUXKX1Ngzeo1WI8w8MWjwls2ErabfDE3c0ix0Tu9NJ3iGTAHukvU 8eOeyvDbUSvJdi7P/Y4okuQo6gCSUzWQ= X-Received: by 2002:a05:6122:32c1:b0:5f0:12ff:aaf1 with SMTP id 71dfb90a1353d-5f01cfb1bd4mr2413181e0c.10.1796406080029; Fri, 04 Dec 2026 09:41:20 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:18 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 5/6] scripts/patchtest: fail if the repo can't be set up Date: Fri, 4 Dec 2026 12:41:06 -0500 Message-ID: <20261204174107.1295971-6-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252013 If creating PatchTestRepo raised, e.g. for a file that isn't an mbox, startTestRun() only flagged a repo error, so no tests ran and patchtest still exited with success and printed "All patchtests passed". Count it as a test error instead, and print the traceback rather than logging traceback.print_exc()'s return value of None. Catch Exception rather than everything, so that an interrupt isn't swallowed and followed by another full run for the post-merge tests. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- scripts/patchtest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/patchtest b/scripts/patchtest index 74184f107a..626ee3191a 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -72,9 +72,11 @@ def getResult(patch, mergepatch, logfile=None): commit=PatchtestParser.basecommit, branch=PatchtestParser.basebranch, ) - except: - logger.error(traceback.print_exc()) + except Exception: + traceback.print_exc() + logger.error('patchtest: failed to set up the repo') self.repo_error = True + self.test_error = True self.stop() return