Topics

[edk2-staging/EdkRepo] [PATCH V3] EdkRepo: Return exit codes in edkrepo_entry_point.py


Ashley E Desimone
 

Return the error codes generated by edkrepo_cli that
is called in main()

Cc: Nate DeSimone <@natedesimone>
Cc: Puja Pandya <puja.pandya@...>
Cc: Bret Barkelew <Bret.Barkelew@...>
Cc: Prince Agyeman <prince.agyeman@...>
Cc: Erik Bjorge <erik.c.bjorge@...>
Signed-off-by: Ashley E Desimone <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..dd2b36e 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


Nate DeSimone
 

Reviewed-by: Nate DeSimone <@natedesimone>

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ashley E Desimone
Sent: Wednesday, September 9, 2020 2:42 PM
To: devel@edk2.groups.io
Cc: Desimone, Nathaniel L <@natedesimone>; Pandya, Puja <puja.pandya@...>; Bret Barkelew <Bret.Barkelew@...>; Agyeman, Prince <prince.agyeman@...>; Bjorge, Erik C <erik.c.bjorge@...>
Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH V3] EdkRepo: Return exit codes in edkrepo_entry_point.py

Return the error codes generated by edkrepo_cli that is called in main()

Cc: Nate DeSimone <@natedesimone>
Cc: Puja Pandya <puja.pandya@...>
Cc: Bret Barkelew <Bret.Barkelew@...>
Cc: Prince Agyeman <prince.agyeman@...>
Cc: Erik Bjorge <erik.c.bjorge@...>
Signed-off-by: Ashley E Desimone <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..dd2b36e 100644
--- a/edkrepo/edkrepo_entry_point.py
+++ b/edkrepo/edkrepo_entry_point.py
@@ -91,12 +91,12 @@ def main():
try: mod = importlib.import_module(pref_entry) func = getattr(mod, pref_entry_func)- func()+ return(func()) except Exception as e: print('Unable to launch preferred entry point. Launching default entry point edkrepo.edkrepo_cli.py') traceback.print_exc() import edkrepo.edkrepo_cli- edkrepo.edkrepo_cli.main()+ return edkrepo.edkrepo_cli.main() if __name__ == "__main__": try:--
2.26.2.windows.1


-=-=-=-=-=-=
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#65164): https://edk2.groups.io/g/devel/message/65164
Mute This Topic: https://groups.io/mt/76743015/1767664
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [@natedesimone] -=-=-=-=-=-=


Bjorge, Erik C
 

Reviewed-by: Erik Bjorge <erik.c.bjorge@...>

-----Original Message-----
From: Desimone, Nathaniel L <@natedesimone>
Sent: Friday, September 25, 2020 6:35 PM
To: devel@edk2.groups.io; Desimone, Ashley E <ashley.e.desimone@...>
Cc: Pandya, Puja <puja.pandya@...>; Bret Barkelew <Bret.Barkelew@...>; Agyeman, Prince <prince.agyeman@...>; Bjorge, Erik C <erik.c.bjorge@...>
Subject: RE: [edk2-devel] [edk2-staging/EdkRepo] [PATCH V3] EdkRepo: Return exit codes in edkrepo_entry_point.py

Reviewed-by: Nate DeSimone <@natedesimone>

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ashley E Desimone
Sent: Wednesday, September 9, 2020 2:42 PM
To: devel@edk2.groups.io
Cc: Desimone, Nathaniel L <@natedesimone>; Pandya, Puja <puja.pandya@...>; Bret Barkelew <Bret.Barkelew@...>; Agyeman, Prince <prince.agyeman@...>; Bjorge, Erik C <erik.c.bjorge@...>
Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH V3] EdkRepo: Return exit codes in edkrepo_entry_point.py

Return the error codes generated by edkrepo_cli that is called in main()

Cc: Nate DeSimone <@natedesimone>
Cc: Puja Pandya <puja.pandya@...>
Cc: Bret Barkelew <Bret.Barkelew@...>
Cc: Prince Agyeman <prince.agyeman@...>
Cc: Erik Bjorge <erik.c.bjorge@...>
Signed-off-by: Ashley E Desimone <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..dd2b36e 100644
--- a/edkrepo/edkrepo_entry_point.py
+++ b/edkrepo/edkrepo_entry_point.py
@@ -91,12 +91,12 @@ def main():
try: mod = importlib.import_module(pref_entry) func = getattr(mod, pref_entry_func)- func()+ return(func()) except Exception as e: print('Unable to launch preferred entry point. Launching default entry point edkrepo.edkrepo_cli.py') traceback.print_exc() import edkrepo.edkrepo_cli- edkrepo.edkrepo_cli.main()+ return edkrepo.edkrepo_cli.main() if __name__ == "__main__": try:--
2.26.2.windows.1


-=-=-=-=-=-=
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#65164): https://edk2.groups.io/g/devel/message/65164
Mute This Topic: https://groups.io/mt/76743015/1767664
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [@natedesimone] -=-=-=-=-=-=