[DRE-commits] [rubygems-integration] 01/05: debian/tests/package-list: make output easier to read

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Apr 10 19:51:44 UTC 2014


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

terceiro pushed a commit to branch master
in repository rubygems-integration.

commit de849670375c93b10d893ba408b88531908678c6
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Apr 10 16:20:34 2014 -0300

    debian/tests/package-list: make output easier to read
    
    First output the list of gems to a file, then grep that file.
---
 debian/changelog          |  7 +++++++
 debian/tests/package-list | 11 ++++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b14a577..d9fe7b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+rubygems-integration (1.6) UNRELEASED; urgency=medium
+
+  * debian/tests/package-list: make output easier to read. First output the
+    list of gems to a file, then grep that file.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Thu, 10 Apr 2014 16:16:36 -0300
+
 rubygems-integration (1.5) unstable; urgency=medium
 
   * Add /usr/share/rubygems-integration/all to the gem path.
diff --git a/debian/tests/package-list b/debian/tests/package-list
index 8d08e12..adb8545 100755
--- a/debian/tests/package-list
+++ b/debian/tests/package-list
@@ -1,9 +1,14 @@
 #!/bin/sh
 
-set -e
+exec 2>&1
+
+set -ex
+
+gems=$ADTTMP/gems
+gem list > $gems
 
 # a gem from the "default gems"
-gem list | grep ^rdoc
+grep ^rdoc $gems
 
 # a system gem, installed by this test dependencies
-gem list | grep ^ffi
+grep ^ffi $gems

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



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