Tony Mancill pushed to branch debian-950311 at Debian Med / fastqc


Commits:
939c0d47 by tony mancill at 2020-04-06T15:30:51-07:00
update debian/source/include-binaries after renaming test file

Gbp-Dch: ignore

- - - - -
88efed42 by tony mancill at 2020-04-06T15:56:42-07:00
Exit non-zero after test failure and adjust location of tests_dir

Gbp-Dch: ignore

- - - - -


2 changed files:

- debian/source/include-binaries
- debian/tests/run-unit-test


Changes:

=====================================
debian/source/include-binaries
=====================================
@@ -1 +1 @@
-debian/tests.fastqc/toy.bam
+debian/tests.fastqc/toy_bam.bam


=====================================
debian/tests/run-unit-test
=====================================
@@ -2,7 +2,7 @@
 set -e
 
 pkg="fastqc"
-test_dir="$PWD"
+tests_dir="$PWD/debian/tests"
 test_failures=0
 
 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
@@ -19,7 +19,7 @@ find . -name "*.gz" -exec gunzip \{\} \;
 for sample in example.fastq toy_sam.sam toy_bam.bam ; do
     /usr/bin/fastqc --extract "$sample"
     result="${sample%%.*}_fastqc"
-    expected="${test_dir}/${result}_expected_summary.txt"
+    expected="${tests_dir}/${result}_expected_summary.txt"
     if ! diff -q "${result}/summary.txt" ${expected} 2>/dev/null ; then
        (( test_failures += 1 ))
         cat <<EOT
@@ -36,6 +36,8 @@ done
 
 if (( test_failures == 0 )); then
     echo "PASS"
-else
-    echo "FAIL mismatched fastqc summary count: $test_failures"
+    exit 0
 fi
+
+echo "FAIL mismatched fastqc summary count: $test_failures"
+exit 1



View it on GitLab: 
https://salsa.debian.org/med-team/fastqc/-/compare/f68b71eb1c85d7f273221f408fcfbca7140c1d85...88efed4269c0875f8478d7f9aab136467ce4156b

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/fastqc/-/compare/f68b71eb1c85d7f273221f408fcfbca7140c1d85...88efed4269c0875f8478d7f9aab136467ce4156b
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to