diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
index 05a34c6..f35581b 100644
--- a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
+++ b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
@@ -223,6 +223,9 @@ protected function runUpdates() {
    * {@inheritdoc}
    */
   protected function rebuildAll() {
+    // We know the rebuild causes notices, so don't exit on failure.
+    $die_on_fail = $this->dieOnFail;
+    $this->dieOnFail = FALSE;
     parent::rebuildAll();
 
     // Remove the notices we get due to the menu link rebuild prior to running
@@ -234,6 +237,7 @@ protected function rebuildAll() {
         $this->results['#exception']--;
       }
     }
+    $this->dieOnFail = $die_on_fail;
   }
 
 }
