Skip to content

Commit c134386

Browse files
authored
test: fix CreateNewChangelogTest removing uncommitted changes (#10020)
* fix: Fixed CreateNewChangelogTest * fix: Update warning in test
1 parent a002b7c commit c134386

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/system/AutoReview/CreateNewChangelogTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ protected function setUp(): void
6565
#[DataProvider('provideCreateNewChangelog')]
6666
public function testCreateNewChangelog(string $mode): void
6767
{
68+
$output = exec('git status --porcelain | wc -l');
69+
70+
if ($output !== '0') {
71+
$this->markTestSkipped('You have uncommitted operations that will be erased by this test.');
72+
}
73+
6874
$currentVersion = $this->currentVersion;
6975
$newVersion = $this->incrementVersion($currentVersion, $mode);
7076

0 commit comments

Comments
 (0)