diff --git a/tests/hw/esp-tester/mini-jag.toit b/tests/hw/esp-tester/mini-jag.toit index 6e3be69f6..55d7b44a1 100644 --- a/tests/hw/esp-tester/mini-jag.toit +++ b/tests/hw/esp-tester/mini-jag.toit @@ -8,6 +8,8 @@ import net import system.containers import uuid show Uuid +import .shared + main: cause := esp32.wakeup-cause print "Wakeup cause: $cause" @@ -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 diff --git a/tests/hw/esp-tester/tester.toit b/tests/hw/esp-tester/tester.toit index 37517621f..f2f2a51b0 100644 --- a/tests/hw/esp-tester/tester.toit +++ b/tests/hw/esp-tester/tester.toit @@ -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: @@ -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"