Leave keep_going var unset (empty string), since test checks for empty string. Pass test_rev an actual command to execute! Shorten the error message, and use git log flag to suppress output. No matter result, return to revision that was checked out when script was originally called.