Skip to content

Commit

Permalink
Merge pull request #89 from rest-for-physics/jgalan-pipeline-fix
Browse files Browse the repository at this point in the history
check_readout.sh fixing script issues
  • Loading branch information
jgalan authored Jun 5, 2023
2 parents f298d8a + daaf5d7 commit a0d1e94
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ jobs:
cd ${{ env.DETECTOR_LIB_PATH }}/pipeline/readout
restManager --c generateReadout.rml --o readout.root
restRoot -b -q PrintReadout.C'("readout.root")' > print.txt
source check_readout.sh
diff print.txt validation.txt > output.txt
python3 checkLines.py
# We need to introduce basic validation here
# - diff validation.txt print.txt
# - name: Basic Readout
Expand Down
9 changes: 9 additions & 0 deletions pipeline/readout/checkLines.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
with open(r"output.txt", "r") as fp:
x = len(fp.readlines())

if x > 12:
print("Number of lines above 12!")
return 1
else:
print("Number of linesOK!")
return 0
7 changes: 0 additions & 7 deletions pipeline/readout/check_readout.sh

This file was deleted.

0 comments on commit a0d1e94

Please sign in to comment.