fix(wokwi): Delete generated diagram to avoid issues running locally (#10567)

This commit is contained in:
Lucas Saavedra Vaz 2024-11-05 19:57:19 -03:00 committed by GitHub
parent 11f3cff53f
commit b170e87d41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,6 +125,8 @@ function run_test() {
extra_args="--embedded-services esp,arduino"
fi
rm $sketchdir/diagram.json 2>/dev/null || true
result=0
printf "\033[95mpytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args\033[0m\n"
bash -c "set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args; exit \$?" || result=$?