Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
896145d1
Commit
896145d1
authored
5 years ago
by
Mark Hodgkinson
Browse files
Options
Downloads
Patches
Plain Diff
Update pflow test to have some error post processing
parent
7eae597f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reconstruction/RecExample/RecExRecoTest/test/test_recexreco_art_pflow_and_jets_fromesd.sh
+17
-6
17 additions, 6 deletions
...ecoTest/test/test_recexreco_art_pflow_and_jets_fromesd.sh
with
17 additions
and
6 deletions
Reconstruction/RecExample/RecExRecoTest/test/test_recexreco_art_pflow_and_jets_fromesd.sh
+
17
−
6
View file @
896145d1
...
@@ -2,11 +2,22 @@
...
@@ -2,11 +2,22 @@
#
#
# art-description: Athena runs topoclustering from an ESD file
# art-description: Athena runs topoclustering from an ESD file
# art-type: grid
# art-type: grid
# art-include: 21.0/Athena
# art-include: 21.0-TrigMC/Athena
# art-include: master/Athena
# art-include: master/Athena
# art-include: 21.3/Athena
# art-include: 21.9/Athena
athena eflowRec/run_ESDStandardReco.py
athena eflowRec/run_ESDStandardReco.py |
tee
temp.log
echo
"art-result:
$?
"
echo
"art-result:
${
PIPESTATUS
[0]
}
"
grep
-v
IsActiveStatus temp.log |
grep
-v
"WILL SOON NOT WORK ANYMORE"
>
& stdout_cleaned.txt
export
GREP_ERROR
=
0
#grep returns 1 if nothing is found, whilst ART assumes a non-zero code indicates a problem. So need
#to revers the error code if 0 is returned by grep (by default assume error code zero in initialization above)
grep
ERROR stdout_cleaned.txt
if
[
$?
==
0
]
;
then
export
GREP_ERROR
=
1
fi
echo
"art-result:
$GREP_ERROR
grepping log file for errors."
#clean up files created by this script, because I am not sure whether anything else would do it.
rm
temp.log
rm
stdout_cleaned.txt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment