[DRE-commits] [gitlab] 11/12: add test tep on gem2deb-test-runner

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Sep 18 15:23:42 UTC 2016


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

praveen pushed a commit to branch master
in repository gitlab.

commit 3e42d2f975d5e409a60f926276b93eace3b915bb
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Sep 18 20:24:51 2016 +0530

    add test tep on gem2deb-test-runner
---
 debian/tests/control | 1 +
 debian/tests/spec    | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/tests/control b/debian/tests/control
index 3a8028c..7fed02a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,7 @@
 Tests: spec
 Depends: @, 
   sudo,
+  gem2deb-test-runner,
   ruby-rspec,
   ruby-shoulda-matchers,
   ruby-webmock,
diff --git a/debian/tests/spec b/debian/tests/spec
index 75461bd..8797163 100755
--- a/debian/tests/spec
+++ b/debian/tests/spec
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+export SOURCE_TREE=${PWD}
+
 if [ -z "$ADTTMP" ]; then
   ADTTMP=$(mktemp -d)
   cleanup() {
@@ -19,5 +21,5 @@ su gitlab -c 'truncate -s 0 Gemfile.lock'
 export $(cat /etc/gitlab/gitlab-debian.conf)
 export INCLUDE_TEST_DEPENDS="true"
 su gitlab -c "bundle install --local"
-su gitlab -c "bundle exec rake -f ${AUTOPKGTEST_TMP}/debian/tests/spec.rake
+su gitlab -c "bundle exec rake -f ${SOURCE_TREE}/debian/tests/spec.rake"
 #config 2/2 failed, controllers many failed

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



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