Call sys.exit() with an error code when one of the tests fail.  This is required by some CI systems.