From patchwork Wed Jan 19 08:33:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1581697 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=iUMuDDfE; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JdzSj5XK7z9tT8 for ; Wed, 19 Jan 2022 19:33:56 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1nA6Pf-0006Ne-75; Wed, 19 Jan 2022 08:33:51 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1nA6Pd-0006NW-6X for fwts-devel@lists.ubuntu.com; Wed, 19 Jan 2022 08:33:49 +0000 Received: from canonical.com (unknown [175.182.110.232]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 5E52A3F129 for ; Wed, 19 Jan 2022 08:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642581228; bh=QIr0SNXYGE5+svcuXMzpqnDOuYC98dxNapDETFxIgzo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=iUMuDDfEo/WHOy5TfDoNhwNshkRQmId5y7NB4zS5WBOYamG34cdDWUiJVdPqNwg4W SZxIXTmyQPfnu2WCFIAFH1/wEyuE/3yIvzlHo59Z+dRGRVnmNEvMWKvaBts2gLJb3r KH2avAi9XS88I53drbW9E9qEGkV/CEaidjPNyGWuye5WjiOitgvXCtXhzAGrrXDgjg Si4C24xquHKme94n6sSo1sIL923hUs2neH08+UnkVHl1YLuee/y3fsr2W1v7pHFoGu s+fcGulnEbalS6I9XZqFOW2eneOzXlNnqZlKwGZmyzG6fstlyMDYnTYDbvy+j1HqSC 4ANOjLYMpnr1g== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] uefirtmisc: add checking the resources for testing Date: Wed, 19 Jan 2022 16:33:41 +0800 Message-Id: <20220119083341.33613-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" BugLink: https://bugs.launchpad.net/fwts/+bug/1958206 Signed-off-by: Ivan Hu Signed-off-by: Ivan Hu Acked-by: Alex Hung --- src/uefi/uefirtmisc/uefirtmisc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/uefi/uefirtmisc/uefirtmisc.c b/src/uefi/uefirtmisc/uefirtmisc.c index f6038f5f..db33ad66 100644 --- a/src/uefi/uefirtmisc/uefirtmisc.c +++ b/src/uefi/uefirtmisc/uefirtmisc.c @@ -91,6 +91,11 @@ static int getnexthighmonotoniccount_test(fwts_framework *fw, uint32_t multitest "service is not supported on this platform."); return FWTS_SKIP; } + if (status == EFI_OUT_OF_RESOURCES) { + fwts_skipped(fw, "Skipping test, run out of resources for " + "GetNextHighMonotonicCount runtime service test."); + return FWTS_SKIP; + } fwts_failed(fw, LOG_LEVEL_HIGH, "UEFIRuntimeGetNextHighMonotonicCount", "Failed to get high monotonic count with UEFI runtime service."); fwts_uefi_print_status_info(fw, status);