Tools: Make pre-commit fail if QUnit fails

Change-Id: I528a0c06d3060938466703717a13fbf8fbd3b123
Merge "Tools: Make pre-commit fail if QUnit fails"