Added runfailed feature to the scripts

Change-Id: I5c638b6ccb360c4025fa4c9f37fceeef9a635696