Skip to content

Commit

Permalink
Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Dec 17, 2024
1 parent 7ccea6f commit 4633b26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion tests/hw/esp-tester/mini-jag.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import net
import system.containers
import uuid show Uuid

import .shared

main:
cause := esp32.wakeup-cause
print "Wakeup cause: $cause"
Expand All @@ -28,7 +30,7 @@ install-new-test:
network := net.open
server-socket := network.tcp-listen 0
print "$network.address:$server-socket.local-address.port"
print "MINI-JAG LISTENING"
print MINI-JAG-LISTENING
socket := server-socket.accept
reader := socket.in
size := reader.little-endian.read-int32
Expand Down
6 changes: 2 additions & 4 deletions tests/hw/esp-tester/tester.toit
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import system
import uart
import .shared

MINI-JAG-LISTENING ::= "MINI-JAG LISTENING"
TEST-STARTED ::= "TEST STARTED"
ALL-TEST-DONE ::= "All tests done"
ALL-TESTS-DONE ::= "All tests done"
JAG-DECODE ::= "jag decode"

main args:
Expand Down Expand Up @@ -148,7 +146,7 @@ class TestDevice:
collected-output += data.to-string-non-throwing
if not ready-latch.has-value and collected-output.contains "\n$MINI-JAG-LISTENING":
ready-latch.set true
if not all-tests-done.has-value and collected-output.contains ALL-TEST-DONE:
if not all-tests-done.has-value and collected-output.contains ALL-TESTS-DONE:
all-tests-done.set true
if collected-output.contains JAG-DECODE:
ui.abort "Error detected"
Expand Down

0 comments on commit 4633b26

Please sign in to comment.