Skip to content
Snippets Groups Projects
Commit ade9acec authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Change consistence test from exact match to within 1/100,000 change from expected

parent 506a006b
Branches
Tags
2 merge requests!37v0.0.1,!36Metadata output update
Pipeline #7836 failed with stages
in 1 hour, 32 minutes, and 33 seconds
...@@ -168,7 +168,7 @@ consistency: ...@@ -168,7 +168,7 @@ consistency:
- grep -m 1 \"Assigned\":.[0-9] SE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedSE.txt - grep -m 1 \"Assigned\":.[0-9] SE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedSE.txt
- grep -m 1 \"Assigned\":.[0-9] PE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt - grep -m 1 \"Assigned\":.[0-9] PE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt
- echo 7742416 > assignedExpectSE.txt - echo 7742416 > assignedExpectSE.txt
- echo 2599149 > assignedExpectPE.txt - echo 2599140 > assignedExpectPE.txt
- pytest -m consistencySE - pytest -m consistencySE
- pytest -m consistencyPE - pytest -m consistencyPE
artifacts: artifacts:
......
...@@ -24,7 +24,7 @@ def readAssigned(fileAssigned,fileExpectAssigned): ...@@ -24,7 +24,7 @@ def readAssigned(fileAssigned,fileExpectAssigned):
expect = open(fileExpectAssigned, "r") expect = open(fileExpectAssigned, "r")
lineAssigned = assigned.readline() lineAssigned = assigned.readline()
lineExpect = expect.readline() lineExpect = expect.readline()
if lineAssigned.strip() == lineExpect.strip(): if lineAssigned.strip() < (lineExpect.strip()+(lineExpect.strip()*0.00001)) and lineAssigned.strip() > (lineExpect.strip()-(lineExpect.strip()*0.00001)):
data = True data = True
return data return data
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment