Skip to content

Commit 45e6165

Browse files
committed
ci(wokwi): Pass diagram.json file if exists to pytest
1 parent 79b8350 commit 45e6165

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/scripts/tests_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ function run_test() {
4646
if [[ -f "$sketchdir/scenario.yaml" ]]; then
4747
extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml"
4848
fi
49+
if [[ -f "$sketchdir/$target.diagram.json" ]]; then
50+
extra_args+=" --wokwi-diagram $sketchdir/$target.diagram.json"
51+
fi
52+
4953
elif [ $platform == "qemu" ]; then
5054
PATH=$HOME/qemu/bin:$PATH
5155
extra_args="--embedded-services qemu --qemu-image-path $build_dir/$sketchname.ino.merged.bin"

0 commit comments

Comments
 (0)