fix(tests): Use proper API and check for required token (#10223)
This commit is contained in:
parent
60cbb6276a
commit
cd3d0bf569
4 changed files with 9 additions and 5 deletions
4
.github/scripts/tests_run.sh
vendored
4
.github/scripts/tests_run.sh
vendored
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
def test_cfg(dut):
|
||||
dut.expect("Hello cfg!")
|
||||
dut.expect_exact("Hello cfg!")
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
def test_hello_world(dut):
|
||||
dut.expect("Hello Arduino!")
|
||||
dut.expect_exact("Hello Arduino!")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue