Skip to content

Commit 1060c38

Browse files
committed
utils: Remove excessive logging in tests
Remove excessive logging in tests Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
1 parent a52e0d4 commit 1060c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/on_target/utils/uart.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def wait_for_str_ordered(
195195
break
196196
if start_t + timeout < time.time():
197197
raise AssertionError(
198-
f"{missing if missing else msgs} missing in UART log in the expected order. {error_msg}\nUart log:\n{self.log}"
198+
f"{missing if missing else msgs} missing in UART log in the expected order. {error_msg}"
199199
)
200200
if self._evt.is_set():
201201
raise RuntimeError(f"Uart thread stopped, log:\n{self.log}")
@@ -210,7 +210,7 @@ def wait_for_str(self, msgs: Union[str, list], error_msg: str = "", timeout: int
210210
if missing_msgs == []:
211211
return self.get_size()
212212
if start_t + timeout < time.time():
213-
raise AssertionError(f"{missing_msgs} missing in UART log. {error_msg}\nUart log:\n{self.log}")
213+
raise AssertionError(f"{missing_msgs} missing in UART log. {error_msg}\n")
214214
if self._evt.is_set():
215215
raise RuntimeError(f"Uart thread stopped, log:\n{self.log}")
216216
time.sleep(1)

0 commit comments

Comments
 (0)