From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.141942.1598039961884472840 for ; Fri, 21 Aug 2020 12:59:22 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: aO1mtSSIZWvw2USbNm8FcQVP4Hyzc1X4bTzR42UHgScuJ8/Wt5KaEQcPtxVqOaKLxcRVwfPSxo orKNFTOAxtQA== X-IronPort-AV: E=McAfee;i="6000,8403,9720"; a="135682527" X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="135682527" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 12:59:21 -0700 IronPort-SDR: UUJ4O+7q5/ypoPdkJ8+1RjgEuzMN/QRoFYZQVuWlqmTGg/VNHhaWgAKIg+n8EbLL4Mijnfvn3L Ql8xO1UUOcPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,338,1592895600"; d="scan'208";a="298045119" Received: from aedesimo-desk.amr.corp.intel.com ([10.251.129.48]) by orsmga006.jf.intel.com with ESMTP; 21 Aug 2020 12:59:20 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Bret Barkelew , Prince Agyeman , Erik Bjorge Subject: [edk2-staging/EdkRepo] [PATCH v2] EdkRepo: Return exit codes in edkrepo_entry_point.py Date: Fri, 21 Aug 2020 12:59:18 -0700 Message-Id: <20200821195918.875-1-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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:=0D mod =3D importlib.import_module(pref_entry)=0D func =3D getattr(mod, pref_entry_func)=0D - func()=0D + return(func())=0D except Exception as e:=0D print('Unable to launch preferred entry point. Launching default e= ntry point edkrepo.edkrepo_cli.py')=0D traceback.print_exc()=0D import edkrepo.edkrepo_cli=0D - edkrepo.edkrepo_cli.main()=0D + return(edkrepo.edkrepo_cli.main())=0D =0D if __name__ =3D=3D "__main__":=0D try:=0D --=20 2.26.2.windows.1