diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5251519026229541c9b029b79a2447fa08d9a8a..dc2eab106b9fff3a2d3a00dc5bde49c81046f5b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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] PE_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt - echo 7742416 > assignedExpectSE.txt - - echo 2599149 > assignedExpectPE.txt + - echo 2599140 > assignedExpectPE.txt - pytest -m consistencySE - pytest -m consistencyPE artifacts: diff --git a/workflow/tests/test_consistency.py b/workflow/tests/test_consistency.py index 0aecc02000f301eaf237a7e6ae6270761e01687e..5b8b803e5f769a89b0f7673b28846774112c7ae6 100644 --- a/workflow/tests/test_consistency.py +++ b/workflow/tests/test_consistency.py @@ -24,7 +24,7 @@ def readAssigned(fileAssigned,fileExpectAssigned): expect = open(fileExpectAssigned, "r") lineAssigned = assigned.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 return data