diff --git a/avocado/core/job.py b/avocado/core/job.py index 6f3717c1016941b5555e3e55fb2ebaaaf222782d..99eb8ec045d2240727f7704d9019809be3127ee1 100644 --- a/avocado/core/job.py +++ b/avocado/core/job.py @@ -108,7 +108,9 @@ class Job(object): if self.show_job_log: if not self.silent: output.add_console_handler(_TEST_LOGGER) + output.add_console_handler(logging.getLogger()) _TEST_LOGGER.setLevel(self.loglevel) + _TEST_LOGGER.propagate = False self.test_dir = data_dir.get_test_dir() self.test_index = 1 diff --git a/avocado/utils/process.py b/avocado/utils/process.py index 886db48fc3c4236cbe34098704a2ad475feb9942..0c167a53e24872de8f60e3884e8ee24f054f2818 100644 --- a/avocado/utils/process.py +++ b/avocado/utils/process.py @@ -655,7 +655,11 @@ class GDBSubProcess(object): runtime.CURRENT_TEST.report_state() runtime.CURRENT_TEST.paused_msg = '' - return self.create_and_wait_on_resume_fifo(fifo_path) + ret = self.create_and_wait_on_resume_fifo(fifo_path) + runtime.CURRENT_TEST.paused_msg = ("\rResuming ...") + runtime.CURRENT_TEST.report_state() + runtime.CURRENT_TEST.paused_msg = '' + return ret def handle_fatal_signal(self, response): script_path, fifo_path = self.generate_gdb_connect_sh() @@ -675,7 +679,11 @@ class GDBSubProcess(object): runtime.CURRENT_TEST.report_state() runtime.CURRENT_TEST.paused_msg = '' - return self.create_and_wait_on_resume_fifo(fifo_path) + ret = self.create_and_wait_on_resume_fifo(fifo_path) + runtime.CURRENT_TEST.paused_msg = ("\rResuming ...") + runtime.CURRENT_TEST.report_state() + runtime.CURRENT_TEST.paused_msg = '' + return ret def _is_thread_stopped(self): result = False