diff --git a/tests/system/AutoReview/CreateNewChangelogTest.php b/tests/system/AutoReview/CreateNewChangelogTest.php index fc348565464f..b6a89e047f88 100644 --- a/tests/system/AutoReview/CreateNewChangelogTest.php +++ b/tests/system/AutoReview/CreateNewChangelogTest.php @@ -65,6 +65,12 @@ protected function setUp(): void #[DataProvider('provideCreateNewChangelog')] public function testCreateNewChangelog(string $mode): void { + $output = exec('git status --porcelain | wc -l'); + + if ($output !== '0') { + $this->markTestSkipped('You have uncommitted operations that will be erased by this test.'); + } + $currentVersion = $this->currentVersion; $newVersion = $this->incrementVersion($currentVersion, $mode);