Skip to content
Commits on Source (2)
obj-x86_64-linux-gnu/megahit usr/bin
obj-x86_64-linux-gnu/megahit_core usr/bin
obj-x86_64-linux-gnu/megahit_core_no_hw_accel usr/bin
obj-x86_64-linux-gnu/megahit_core_popcnt usr/bin
obj-x86_64-linux-gnu/megahit_toolkit usr/bin
Description: for sake of autopkgtest, change test data directory
This now becomes the working directory.
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2019-10-15
---
Index: megahit/src/megahit
===================================================================
--- megahit.orig/src/megahit 2019-10-15 06:06:49.207438632 +0100
+++ megahit/src/megahit 2019-10-15 06:06:49.203438593 +0100
@@ -566,14 +566,9 @@
def find_test_data_path():
- script_path = software_info.script_path
- for path in [os.path.join(script_path, '..'), os.path.join(script_path, '../share/megahit')]:
- test_data_dir = abspath(os.path.join(path, 'test_data'))
- if os.path.isdir(test_data_dir) and all(
- f in os.listdir(test_data_dir) for f in ['r1.il.fa.gz', 'r2.il.fa.bz2', 'r3_1.fa', 'r3_2.fa', 'r4.fa']):
- return test_data_dir
- raise Usage('Test data not found! Script path = {0}'.format(script_path))
-
+ # The test will suspend anyways if the files are not there
+ test_data_dir = '.'
+ return test_data_dir
def check_reads():
if opt.test_mode:
fix_test_path.patch
2to3.patch
fix_src_packed_field.patch