At work I have been helping on a failure review board. Once every 10,000 boot cycles, sometimes the system gets stuck displaying the splash screen. They asked me to figure out a way to automate the booting and then to halt should the splash screen get stuck on. Python and Sparkfun parts to the rescue!I went home, pulled out a Sparkfun ambient light sensor break out board, a spare Arduino (ordered another to take its place), and a project box and quickly wired it all together. Then it was a matter of writing a simple sketch to query the ADC value and report it over the serial port. Had that done and working in about an hour and a half. Then I went back to work and wrote the Python to grab the sensor reading. With all that, it was easy to integrate it into my test suite and halt the reboot cycle if the splash screen stays bright past a given time.
I let it rip, and sometime in the next three days it should fail and send the team an email. I love automating tests!