From nobody Sat Apr 27 06:28:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+64546+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64546+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1598039717; cv=none; d=zohomail.com; s=zohoarc; b=GSSCL+mQ5X8JW7eGKjocyhQ/UKqETx+lAiedDs9d6biw6yfUd6FYTGohuYbHq/ok2eYmzKlINnxxCFwWgsP5icL30ImLlQ1PBc/XVt06PHNaS7FEFaz5hAyTyCbWIyiTY39+Q7DdEkZzBkpZ3a7tle/TPmuamT4tgCSsqjw1Ezs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598039717; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=VMswOWQs9AMMLvrVJSdKvEMJHrqMIiJ0UlLg3EbcQxY=; b=KtXRjEBwtgWJSbA3ncVq+9lU+AYLgH70Mbl9M2PgVbUVIkwVYtqE2eB3hQXWf+5XBmZrwjNSUWc5V5tpCCxHBVDn9TUAEIhx64JntzkCHWWVom18HpuEcbr1Dt7EzF/FuesCr1VYknsG/aLT6si4R1J7bXs09nSqQb7bfPh42vk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64546+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 15980397177711001.3784643150176; Fri, 21 Aug 2020 12:55:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id wPHLYY1788612xndM6RNXLRZ; Fri, 21 Aug 2020 12:55:17 -0700 X-Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.142301.1598039716338492823 for ; Fri, 21 Aug 2020 12:55:16 -0700 IronPort-SDR: xIKyyz75hO/hyMq0T6kbtQ1XMjGcBg3zWqJrBb42RxBBJeeZ+R6ZlwVN0xWlKXbDg73pJLpC99 SteAj90rbnGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9720"; a="143253924" X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="143253924" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 12:55:15 -0700 IronPort-SDR: qPBplt+PBm4FWDZ7yAdcPItaLgxZKM+G0hMpq+jkFWYTXpXUlhf8hQ0GIV69hR+tJjoVD02cBn A2uTJicsjB0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="298044310" X-Received: from aedesimo-desk.amr.corp.intel.com ([10.251.129.48]) by orsmga006.jf.intel.com with ESMTP; 21 Aug 2020 12:55:15 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Bret Barkelew , Prince Agyeman , Erik Bjorge Subject: [edk2-devel] [PATCH] EdkRepo: Return exit codes in edkrepo_entry_point.py Date: Fri, 21 Aug 2020 12:55:11 -0700 Message-Id: <20200821195511.775-1-ashley.e.desimone@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashley.e.desimone@intel.com X-Gm-Message-State: RreVhicPmfY2uxc2csFSxuQdx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1598039717; bh=8ld5t3YL0BbSgzWXQDzg468l+ZD5ZyPFi9/Du/Ja4U0=; h=Cc:Date:From:Reply-To:Subject:To; b=SteaSs2z79D0+NByNwA2wGQQZ8RWjdzf3ACgSCnSl36XxRS3hkVGzrkPlhoNpCWUlsJ bx32m11cWOIgSAp9aLZ7XxTm5JiJHhkEFFuk0T9Dxtkt901bAI/46Sj2SkjKm5+oo9Euo nxrpHttfZyYbDVaLlfm49w4+f0UoueyI8c0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Return the error codes generated by edkrepo_cli that is called in main() Cc: Nate DeSimone Cc: Puja Pandya Cc: Bret Barkelew Cc: Prince Agyeman Cc: Erik Bjorge Signed-off-by: Ashley E Desimone --- edkrepo/edkrepo_entry_point.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edkrepo/edkrepo_entry_point.py b/edkrepo/edkrepo_entry_point.py index c2ff56a..f759022 100644 --- a/edkrepo/edkrepo_entry_point.py +++ b/edkrepo/edkrepo_entry_point.py @@ -91,12 +91,12 @@ def main(): try: mod =3D importlib.import_module(pref_entry) func =3D getattr(mod, pref_entry_func) - func() + return(func()) except Exception as e: print('Unable to launch preferred entry point. Launching default e= ntry point edkrepo.edkrepo_cli.py') traceback.print_exc() import edkrepo.edkrepo_cli - edkrepo.edkrepo_cli.main() + return(edkrepo.edkrepo_cli.main()) =20 if __name__ =3D=3D "__main__": try: --=20 2.26.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64546): https://edk2.groups.io/g/devel/message/64546 Mute This Topic: https://groups.io/mt/76336622/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-