1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
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-1.2.9/src/megahit
===================================================================
--- megahit-1.2.9.orig/src/megahit 2019-10-22 13:15:53.688356856 +0100
+++ megahit-1.2.9/src/megahit 2019-10-22 13:15:53.680356887 +0100
@@ -570,14 +570,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:
|