grid: fix "log buildout output in realtime"
this fixes 86ce8b8e which had an error the current_output variable was not reset when the current output ended in \n. As a result, logged output was sometimes containing some parts of the program output twice. We could even catch it in unit test, when running the test multiple times. It also happened on test node with https://erp5js.nexedi.net/#/test_result_module/20210826-1706D7F50/10 The is trivial, we reset the current output also in this case. The test suite is extended a bit, with added tests and test adjustments made during the debugging. With test_exec_large_output_multiline the problem triggers almost every time.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#260580
external
|
SlapOS.Eggs.UnitTest-Jerome.Python2 |
00:11:05
|
||||||
failed |
#260559
external
|
SlapOS.Eggs.UnitTest-Jerome.Python3 |
00:20:04
|
||||||
passed |
#260506
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python2 |
00:13:13
|
||||||
passed |
#260527
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python2 |
01:11:27
|
||||||
passed |
#260564
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python2 |
00:19:41
|
||||||
failed |
#260577
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python2 |
00:25:17
|
||||||
passed |
#260504
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python3 |
00:08:24
|
||||||
passed |
#260507
external
retried
|
SlapOS.Eggs.UnitTest-Jerome.Python3 |
01:13:32
|
||||||