skip-test-on-32-bit
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Tue, 27 Dec 2022 10:41:25 +0000 (11:41 +0100)
committerÉtienne Mollier <emollier@debian.org>
Tue, 27 Dec 2022 10:41:25 +0000 (11:41 +0100)
Gbp-Pq: Name skip-test-on-32-bit.patch

tests/samtools_test.py

index 7c4023768f3af4361a4215b794e7f3e9c732ccd9..a824d91df98576594edb11160b32c06e5630c52f 100644 (file)
@@ -20,6 +20,7 @@ from TestUtils import checkBinaryEqual, check_lines_equal, \
     check_samtools_view_equal, get_temp_filename, force_bytes, WORKDIR, \
     make_data_files, BAM_DATADIR
 
+import platform
 
 IS_PYTHON3 = sys.version_info[0] >= 3
 
@@ -92,7 +93,7 @@ class SamtoolsTest(unittest.TestCase):
         "flagstat ex1.bam > %(out)s_ex1.flagstat",
         # Fails python 3.3 on linux, passes on OsX and when
         # run locally
-        "calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
+        #"calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
         # use -s option, otherwise the following error in samtools 1.2:
         # Samtools-htslib-API: bam_get_library() not yet implemented
         # causes downstream problems
@@ -118,6 +119,9 @@ class SamtoolsTest(unittest.TestCase):
         # ("addreplacerg -r 'RG\tID:ga\tSM:hs' ex1.bam > %(out)s_ex1.addreplacerg",
     ]
 
+    if platform.architecture()[0] == '64bit':
+        statements.append("calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam")
+
     map_command = {
     }