[med-svn] [Git][med-team/crac][master] Autopkgtest fails due to tempfile usage - use mktemp instead

Andreas Tille (@tille) gitlab at salsa.debian.org
Sun Nov 7 21:33:32 GMT 2021



Andreas Tille pushed to branch master at Debian Med / crac


Commits:
b06fb319 by Andreas Tille at 2021-11-07T22:32:51+01:00
Autopkgtest fails due to tempfile usage - use mktemp instead

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/tempfile.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,10 +1,11 @@
-crac (2.5.2+dfsg-5) UNRELEASED; urgency=medium
+crac (2.5.2+dfsg-5) unstable; urgency=medium
 
   * Fix bashism in configure script
     Closes: #998787
   * Standards-Version: 4.6.0 (routine-update)
+  * Autopkgtest fails due to tempfile usage - use mktemp instead
 
- -- Andreas Tille <tille at debian.org>  Sun, 07 Nov 2021 21:43:07 +0100
+ -- Andreas Tille <tille at debian.org>  Sun, 07 Nov 2021 22:28:49 +0100
 
 crac (2.5.2+dfsg-4) unstable; urgency=medium
 


=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ use_debian_packages_libgtarrays.patch
 reproducible_build.patch
 cross.patch
 bashism.patch
+tempfile.patch


=====================================
debian/patches/tempfile.patch
=====================================
@@ -0,0 +1,26 @@
+Description: Autopkgtest fails due to tempfile usage - use mktemp instead
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sun, 07 Nov 2021 21:43:07 +0100
+
+--- a/test_f/test_index.sh
++++ b/test_f/test_index.sh
+@@ -12,8 +12,8 @@ if [ -z "$abs_builddir" ]; then
+ fi
+ 
+ compare_dna_seq() {
+-    raw_seq1=$(tempfile)
+-    raw_seq2=$(tempfile)
++    raw_seq1=$(mktemp)
++    raw_seq2=$(mktemp)
+     (grep -v '^>' $1 | tr -dc 'ACGTTacgtn ' | tr 'acgtn ' 'ACGTNN'; echo) > $raw_seq1
+     (grep -v '^>' $2 | tr -dc 'ACGTTacgtn ' | tr 'acgtn ' 'ACGTNN'; echo) > $raw_seq2
+     diff=$(cmp -b -l $raw_seq1 $raw_seq2 | awk 'BEGIN{c=0} $3 != "N" && $5 != "N"{c++} END {print c}')
+@@ -22,7 +22,7 @@ compare_dna_seq() {
+ }
+ 
+ error=0
+-TEMP=$(tempfile)
++TEMP=$(mktemp)
+ nb_files=$(find $abs_builddir -name "*.ssa" | wc -l)
+ i=1
+ error=0



View it on GitLab: https://salsa.debian.org/med-team/crac/-/commit/b06fb319e0be5ea29eb101997200733da8fae7a2

-- 
View it on GitLab: https://salsa.debian.org/med-team/crac/-/commit/b06fb319e0be5ea29eb101997200733da8fae7a2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211107/8dda434c/attachment-0001.htm>


More information about the debian-med-commit mailing list