pyprog: Wrap entry-point call with sys.exit()
Reading this spec, we probably want to change ``` entry_run = 'from %s import %s; %s()' % (mod, func, func) ``` to ``` entry_run = 'import sys; from %s import %s; sys.exit(%s())' % (mod, func, func) ``` to follow https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts , this is also what `zc.recipe.egg` does. /reviewed-by @kirr /reviewed-on !1108
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#302272
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
01:00:42
|
||||||
passed |
#302257
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:11:24
|
||||||
passed |
#302283
external
|
SlapOS.SlapRunner.ResilienceTest-Master |
00:22:49
|
||||||
failed |
#302188
external
|
SlapOS.SlapRunner.ResilienceTest-Master.ERP5 |
44:11:49
|
||||||
failed |
#302382
external
|
SlapOS.SoftwareReleases.IntegrationTest-Master.Python2 |
07:05:00
|
||||||
failed |
#301936
external
|
SlapOS.SoftwareReleases.IntegrationTest-Master.Python3 |
06:23:10
|
||||||
passed |
#301911
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:11:33
|
||||||
passed |
#301924
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:10:11
|
||||||
passed |
#301939
external
retried
|
SlapOS.SlapRunner.ResilienceTest-Master |
00:22:19
|
||||||
passed |
#301908
external
retried
|
SlapOS.SoftwareReleases.IntegrationTest-Master.Python2 |
04:55:43
|
||||||