Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cd3d0bf

Browse files
authoredAug 22, 2024··
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
 

‎.github/scripts/tests_run.sh

Lines changed: 4 additions & 0 deletions
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 )
Lines changed: 1 addition & 1 deletion
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!")
Lines changed: 1 addition & 1 deletion
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!")

‎tests/validation/nvs/test_nvs.py

Lines changed: 3 additions & 3 deletions
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)
Please sign in to comment.