Skip to content

Commit

Permalink
update validation file with new print
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Sep 18, 2023
1 parent 4849ce9 commit c73319a
Show file tree
Hide file tree
Showing 3 changed files with 1,905 additions and 2,805 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ jobs:
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.DETECTOR_LIB_PATH }}/pipeline/readout
restManager --c generateReadout.rml --o readout.root
echo "Generating print.txt"
restRoot -b -q PrintReadout.C'("readout.root")'
ls
echo "Validating"
python3 compareFiles.py
- name: Basic Readout repository tests
run: |
Expand Down
5 changes: 2 additions & 3 deletions pipeline/readout/compareFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@

if "[32m" in line:
# removing color codes
numeric_string_1 = numeric_string_1[3 : len(numeric_string_1) - 1]
numeric_string_1 = numeric_string_1[3: len(numeric_string_1) - 1]

numeric_filter_2 = filter(str.isdigit, file_2_text[n].rstrip())
numeric_string_2 = "".join(numeric_filter_2)

if "[32m" in file_2_text[n].rstrip():
# removing color codes
numeric_string_2 = numeric_string_2[3 : len(numeric_string_2) - 1]
numeric_string_2 = numeric_string_2[3: len(numeric_string_2) - 1]

if numeric_string_1 != numeric_string_2:
print("xx:" + numeric_string_1)
Expand All @@ -52,6 +52,5 @@
print("Readout validation result " + str(result))
sys.exit(result)


print("Readout validation result " + str(result))
sys.exit(result)
Loading

0 comments on commit c73319a

Please sign in to comment.