[DRE-commits] [gem2deb] 01/02: Remove actual git usage from test

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Mar 15 16:13:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository gem2deb.

commit 2b82bb30785b2b88b8d98610574f0c38b1b82673
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Mar 15 13:03:19 2016 -0300

    Remove actual git usage from test
    
    We don't really need the source package to be a git repository in order
    to test the functionality. Actually, the test source package *not* being
    a git repository makes it more representative of the real cases.
---
 debian/control             | 1 -
 test/unit/metadata_test.rb | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/debian/control b/debian/control
index ae1c9c7..1bcc9d1 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,6 @@ Build-Depends: dctrl-tools <!nocheck>,
                debhelper (>= 9.20141010),
                devscripts <!nocheck>,
                dpkg-dev (>= 1.17.14),
-               git,
                lintian <!nocheck>,
                python3-debian <!nocheck>,
                rake <!nocheck>,
diff --git a/test/unit/metadata_test.rb b/test/unit/metadata_test.rb
index 9475f61..6aaf8a1 100644
--- a/test/unit/metadata_test.rb
+++ b/test/unit/metadata_test.rb
@@ -175,7 +175,6 @@ class MetaDataTest < Gem2DebTestCase
       dir = File.join(tmpdir, 'gitabuser')
       FileUtils.mkdir_p(dir)
       Dir.chdir dir do
-        run_command 'git init'
         File.open('gitabuser.gemspec', 'w') do |f|
           f.puts($GIT_ABUSER_GEMSPEC)
         end
@@ -183,8 +182,6 @@ class MetaDataTest < Gem2DebTestCase
         File.open('lib/gitabuser.rb', 'w') do |f|
           f.puts 'module GitAbuser; end'
         end
-        run_command 'git add .'
-        run_command 'git commit -m "there you go"'
       end
 
       @metadata = self.class.silently { Gem2Deb::Metadata.new(dir) }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list