From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ashley.e.desimone@intel.com) 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 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" 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: [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> 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