diff --git a/tests/system/AutoReview/CreateNewChangelogTest.php b/tests/system/AutoReview/CreateNewChangelogTest.php index 1503bd7e00a0..44e386f1858f 100644 --- a/tests/system/AutoReview/CreateNewChangelogTest.php +++ b/tests/system/AutoReview/CreateNewChangelogTest.php @@ -120,6 +120,7 @@ public function testCreateNewChangelog(string $mode): void ); } finally { exec("git restore -- {$trackedPathArgs}"); + exec("git restore -- {$generatedPathArgs} 2>/dev/null"); exec("git clean -f -- {$generatedPathArgs}"); } }