From 9cf976e827fca96db1f8040751db5fee75ba5981 Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Mon, 1 Sep 2014 16:27:54 +0100 Subject: [PATCH] Flushing serials after reset added as test stability improvement --- workspace_tools/host_tests/host_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspace_tools/host_tests/host_test.py b/workspace_tools/host_tests/host_test.py index e4859a67d2..3c366af57a 100644 --- a/workspace_tools/host_tests/host_test.py +++ b/workspace_tools/host_tests/host_test.py @@ -217,8 +217,9 @@ class Mbed: self.touch_file(reset_file_path) else: self.safe_sendBreak(self.serial) # Instead of serial.sendBreak() - # Give time to wait for the image loading + # Flush serials to get only input after reset self.flush() + # Give time to wait for the image loading reset_tout_s = self.options.forced_reset_timeout if self.options.forced_reset_timeout is not None else self.DEFAULT_RESET_TOUT self.reset_timeout(reset_tout_s)