Exemplo n.º 1
0
 def test_specify_upstream(self, srcrpm):
     """Test --upstream command line option."""
     eq_(GBS(argv=["gbs", "import", "--upstream-branch=upstream",
                   srcrpm]), None)
     repo = GitRepository("./ail")
     eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
     eq_(repo.get_tags(), ['upstream/0.2.29', 'vendor/0.2.29-2.3'])
Exemplo n.º 2
0
 def test_set_author_name_email(self, srcrpm):
     """Test --author-name and --author-email command line options."""
     eq_(GBS(argv=["gbs", "import", "--author-name=test",
                   "[email protected]",
                   srcrpm]), None)
     repo = GitRepository("./app-core")
     eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
     eq_(repo.get_tags(), ['upstream/1.2', 'vendor/1.2-19.3'])
Exemplo n.º 3
0
 def test_import_spec(self, srcdir):
     """Test importing from spec."""
     eq_(GBS(argv=["gbs", "import",
                   os.path.join(srcdir, 'bluez.spec')]), None)
     repo = GitRepository("./bluez")
     eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
     # No packging tag as patch-import fails
     eq_(repo.get_tags(), ['upstream/4.87'])
     eq_(len(repo.get_commits(until='master')), 2)
Exemplo n.º 4
0
 def test_import_srcrpm(self, srcrpm):
     """Test importing from source rpm."""
     eq_(GBS(argv=["gbs", "import", srcrpm]), None)
     repo = GitRepository("./ail")
     eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
     eq_(repo.get_tags(), ['upstream/0.2.29', 'vendor/0.2.29-2.3'])