fix(tests): Use proper API and check for required token (#10223)

This commit is contained in:
Lucas Saavedra Vaz 2024-08-22 17:44:49 -03:00 committed by GitHub
parent 60cbb6276a
commit cd3d0bf569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 5 deletions

View file

@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
-W )
shift
wokwi_timeout=$1
if [[ -z $WOKWI_CLI_TOKEN ]]; then
echo "Wokwi CLI token is not set"
exit 1
fi
platform="wokwi"
;;
-o )

View file

@ -1,2 +1,2 @@
def test_cfg(dut):
dut.expect("Hello cfg!")
dut.expect_exact("Hello cfg!")

View file

@ -1,2 +1,2 @@
def test_hello_world(dut):
dut.expect("Hello Arduino!")
dut.expect_exact("Hello Arduino!")

View file

@ -1,4 +1,4 @@
def test_nvs(dut):
dut.expect("Current counter value: 0")
dut.expect("Current counter value: 1")
dut.expect("Current counter value: 2")
dut.expect_exact("Current counter value: 0")
dut.expect_exact("Current counter value: 1")
dut.expect_exact("Current counter value: 2")