Skip to content

Commit 09ad771

Browse files
committed
fix test
1 parent 3d36899 commit 09ad771

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

qtp_sequencing/validate.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,21 @@ def _validate_multiple(qclient, job_id, prep_info, files, atype, test=False):
152152
fps.append(bn)
153153
if fps:
154154
# let's check by sample_name
155+
fps_rp = fps
155156
rps, fps = [], []
156157
for fp in t_files:
157158
bn = basename(fp)
158-
found = [sn for sn in sample_names if bn.startswith(sn)]
159+
found = [sn for sn in sample_names
160+
if bn.startswith(sn)]
159161
if found:
160162
rps.extend(found)
161163
else:
162164
fps.append(bn)
163165
if fps:
164166
offending[ftype] = (
165167
"The provided files do not match the run prefix "
166-
"values in the prep information: %s" % ', '.join(fps))
168+
"values in the prep information: %s" % ', '.join(
169+
fps_rp))
167170
else:
168171
rps = run_prefixes - set(rps)
169172
if rps:

0 commit comments

Comments
 (0)