Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Alexey Zhelezov
LHCbDIRAC
Commits
65bbdfff
Commit
65bbdfff
authored
3 years ago
by
Chris Burr
Browse files
Options
Downloads
Patches
Plain Diff
Fix Test_dirac-jobexecLHCb.sh for Python 3
parent
41017eae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Integration/WorkloadManagementSystem/Test_dirac-jobexecLHCb.sh
+5
-5
5 additions, 5 deletions
...ration/WorkloadManagementSystem/Test_dirac-jobexecLHCb.sh
with
5 additions
and
5 deletions
tests/Integration/WorkloadManagementSystem/Test_dirac-jobexecLHCb.sh
+
5
−
5
View file @
65bbdfff
...
...
@@ -36,7 +36,7 @@ python "${THIS_DIR}/createJobXMLDescriptionsLHCb.py" $DEBUG
# OK
echo
-e
"
\n
==> jobDescriptionLHCb-OK.xml"
$DIRACSCRIPTS
/
dirac-jobexec jobDescriptionLHCb-OK.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
dirac-jobexec jobDescriptionLHCb-OK.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
ret_code
=
$?
if
[
$ret_code
-eq
0
]
then
...
...
@@ -50,7 +50,7 @@ fi
# OK2
echo
-e
"
\n
==> jobDescriptionLHCb-multiSteps-OK.xml"
$DIRACSCRIPTS
/
dirac-jobexec jobDescriptionLHCb-multiSteps-OK.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
dirac-jobexec jobDescriptionLHCb-multiSteps-OK.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
ret_code
=
$?
if
[
$ret_code
-eq
0
]
then
...
...
@@ -65,7 +65,7 @@ fi
# # FAIL
echo
-e
"
\n
==> jobDescriptionLHCb-FAIL.xml"
$DIRACSCRIPTS
/
dirac-jobexec jobDescriptionLHCb-FAIL.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
dirac-jobexec jobDescriptionLHCb-FAIL.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
ret_code
=
$?
# for lb-run specific errors (e.g. 111 like here) we reschedule even for user jobs (LHCbScript)
# (exit code 1502 becomes 222 --- 1502 & 255 (0xDE))
...
...
@@ -81,7 +81,7 @@ fi
# # FAIL2
echo
-e
"
\n
==> jobDescriptionLHCb-multiSteps-FAIL.xml"
$DIRACSCRIPTS
/
dirac-jobexec jobDescriptionLHCb-multiSteps-FAIL.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
dirac-jobexec jobDescriptionLHCb-multiSteps-FAIL.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
ret_code
=
$?
# for lb-run specific errors (e.g. 111 like here) we reschedule even for user jobs (LHCbScript)
if
[
$ret_code
-eq
222
]
...
...
@@ -97,7 +97,7 @@ fi
# FAIL with exit code > 255
echo
-e
"
\n
==> jobDescriptionLHCb-FAIL1502.xml"
$DIRACSCRIPTS
/
dirac-jobexec jobDescriptionLHCb-FAIL1502.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
dirac-jobexec jobDescriptionLHCb-FAIL1502.xml
--cfg
"
${
THIS_DIR
}
/../../../../DIRAC/tests/Integration/WorkloadManagementSystem/pilot.cfg"
$DEBUG
ret_code
=
$?
if
[
$ret_code
-eq
222
]
# This is 1502 & 255 (0xDE)
then
...
...
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