HIVE-10364: The HMS upgrade script test does not publish results when prepare.sh fails. (Sergio Pena, reviewed by Szehon Ho)