CI: forced marker output by fflush at the end of eNB initialization

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
Raphael Defosseux
2019-04-26 11:12:55 +02:00
parent 96c11ff539
commit d8096787c3
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -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()
+6
View File
@@ -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 <CTRL-C> 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;