Staying motivated with repeat fails

How does everyone keep themselves motivated to keep testing after repeated fails? I'm getting so discouraged and the "pep talks" from my friends and family don't really motivate me like they think they do. I can only hear, "It's ok. Just take it again." so many times. Any suggestions?