Added wait for no test run into flash script.