From d8096787c3f103b4b74358b360ec39eef6ad64d0 Mon Sep 17 00:00:00 2001 From: Raphael Defosseux Date: Fri, 26 Apr 2019 11:12:55 +0200 Subject: [PATCH] CI: forced marker output by fflush at the end of eNB initialization Signed-off-by: Raphael Defosseux --- ci-scripts/main.py | 1 + targets/RT/USER/lte-softmodem.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ci-scripts/main.py b/ci-scripts/main.py index 2edbab6389..3732655898 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -560,6 +560,7 @@ class SSHConnection(): self.rruOptions = extra_options self.CreateHtmlTestRow('-O ' + config_file + extra_options, 'OK', ALL_PROCESSES_OK) logging.debug('\u001B[1m Initialize eNB Completed\u001B[0m') + time.sleep(10) self.close() diff --git a/targets/RT/USER/lte-softmodem.c b/targets/RT/USER/lte-softmodem.c index c87ebb0af3..9b4abf8ee0 100644 --- a/targets/RT/USER/lte-softmodem.c +++ b/targets/RT/USER/lte-softmodem.c @@ -805,8 +805,10 @@ int main( int argc, char **argv ) { } printf("wait RUs\n"); + // CI -- Flushing the std outputs for the previous marker to show on the eNB / RRU log file fflush(stdout); fflush(stderr); + // end of CI modifications wait_RUs(); LOG_I(ENB_APP,"RC.nb_RU:%d\n", RC.nb_RU); // once all RUs are ready intiailize the rest of the eNBs ((dependence on final RU parameters after configuration) @@ -832,6 +834,10 @@ int main( int argc, char **argv ) { // wait for end of program LOG_UI(ENB_APP,"TYPE TO TERMINATE\n"); + // CI -- Flushing the std outputs for the previous marker to show on the eNB / DU / CU log file + fflush(stdout); + fflush(stderr); + // end of CI modifications //getchar(); itti_wait_tasks_end(); oai_exit=1;