Skip to content

Commit cd3d0bf

Browse files
authored
fix(tests): Use proper API and check for required token (#10223)
1 parent 60cbb62 commit cd3d0bf

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Diff for: .github/scripts/tests_run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
132132
-W )
133133
shift
134134
wokwi_timeout=$1
135+
if [[ -z $WOKWI_CLI_TOKEN ]]; then
136+
echo "Wokwi CLI token is not set"
137+
exit 1
138+
fi
135139
platform="wokwi"
136140
;;
137141
-o )

Diff for: tests/validation/democfg/test_democfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def test_cfg(dut):
2-
dut.expect("Hello cfg!")
2+
dut.expect_exact("Hello cfg!")

Diff for: tests/validation/hello_world/test_hello_world.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def test_hello_world(dut):
2-
dut.expect("Hello Arduino!")
2+
dut.expect_exact("Hello Arduino!")

Diff for: tests/validation/nvs/test_nvs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def test_nvs(dut):
2-
dut.expect("Current counter value: 0")
3-
dut.expect("Current counter value: 1")
4-
dut.expect("Current counter value: 2")
2+
dut.expect_exact("Current counter value: 0")
3+
dut.expect_exact("Current counter value: 1")
4+
dut.expect_exact("Current counter value: 2")

0 commit comments

Comments
 (0)