Commit 75ec9125 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Autopkgtest: fixed outdated run-unit-test

parent d7fafd42
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
bedtools (2.27.1+dfsg-2) UNRELEASED; urgency=medium

  [ Andreas Tille ]
  * Install autopkgtest script as /usr/share/doc/bedtools/run-unit-test
  * Point Vcs fields to salsa.debian.org

  [ Liubov Chuprikova ]
  * Fix "autopkgtest fails while it succeeded in the past"
    updated run-unit-test to match new upstream tests
    Closes: #894781

 -- Andreas Tille <tille@debian.org>  Thu, 05 Apr 2018 09:00:44 +0200

bedtools (2.27.1+dfsg-1) unstable; urgency=medium
+1 −11
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ if [ "$ADTTMP" = "" ] ; then
  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
fi

set -x
# Copy test suite there
cp -a /usr/share/bedtools/test $ADTTMP

@@ -16,14 +15,5 @@ ln -s /usr/share/bedtools/genomes

# Enter the directory and run the tests
cd $ADTTMP/test
# Test script is seeking for lower case dir
if [ -d groupBy ] ; then
  ln -s groupBy groupby
fi
DATA=/usr/share/bedtools/data BT=/usr/bin/bedtools sh test.sh | tee test.sh.output

# Did it fail ?
TESTFAILED=0
grep -q fail test.sh.output && TESTFAILED=1
DATA=/usr/share/bedtools/data BT=/usr/bin/bedtools sh test.sh
exit $TESTFAILED