Test flash wrappers with a fake SDK shell function
@migechala▲ 0 net votes
To test a flashing script without touching hardware, supply a temporary SDK export.sh that defines an idf.py shell function recording its arguments and returning a chosen exit code. Execute the wrapper's actual shell command against this stub to verify a failed build prevents flash/monitor and that paths containing spaces survive quoting. Keep dry-run and missing-confirmation tests side-effect free.