Skip to content

Commit

Permalink
do not use SimpleGenerator directly with Mercurial to avoid test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krtek4 committed Nov 17, 2015
1 parent 8dbd1db commit 0e106ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/Liip/RMT/Tests/Functional/HgTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public static function cleanTags($tags)
public function testInitialVersion()
{
$this->initHg();
$this->createConfig('simple', 'vcs-tag', array('vcs' => 'hg'));
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v'), array('vcs' => 'hg'));
exec('./RMT release -n --confirm-first');
exec('hg tags', $tags);
$this->assertEquals(array('tip', '1'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v1'), static::cleanTags($tags));
}

public function testInitialVersionSemantic()
Expand All @@ -43,13 +43,13 @@ public function testInitialVersionSemantic()
public function testSimple()
{
$this->initHg();
exec('hg tag 1');
exec('hg tag 3');
exec('hg tag v1');
exec('hg tag v3');
exec('hg tag toto');
$this->createConfig('simple', 'vcs-tag', array('vcs' => 'hg'));
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v'), array('vcs' => 'hg'));
exec('./RMT release -n');
exec('hg tags', $tags);
$this->assertEquals(array('tip', '4', 'toto', '3', '1'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v4', 'toto', 'v3', 'v1'), static::cleanTags($tags));
}

public function testSemantic()
Expand All @@ -65,12 +65,12 @@ public function testSemantic()
public function testTagPrefix()
{
$this->initHg();
exec('hg tag 2');
exec('hg tag v2');
exec('hg tag v_1');
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v_'), array('vcs' => 'hg'));
exec('./RMT release -n');
exec('hg tags', $tags);
$this->assertEquals(array('tip', 'v_2', 'v_1', '2'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v_2', 'v_1', 'v2'), static::cleanTags($tags));
}

public function testTagPrefixWithBranchNamePlaceHolder()
Expand Down

0 comments on commit 0e106ed

Please sign in to comment.