Using nose.main instead of nose.run returns the result of the tests so the status of the *compilation* buffer can be modified accordingly