def METHOD_NAME(self, shell):
    """Test that a broken build fails correctly.
    """
    config.override("default_shell", shell)
    working_dir = os.path.join(self.src_root, "whack")
    builder = self._create_builder(working_dir)
    self.assertRaises(BuildError, builder.build, clean=True)