Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
72030ad1
Commit
72030ad1
authored
7 years ago
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2059: Update test-patch.sh script to fix incorrect exit code
parent
3689a358
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
30 deletions
+7
-30
test-patch.sh
dev-support/test-patch.sh
+7
-30
No files found.
dev-support/test-patch.sh
View file @
72030ad1
...
...
@@ -832,6 +832,7 @@ if [[ $JENKINS == "true" ]] ; then
exit
100
fi
fi
downloadPatch
verifyPatch
((
RESULT
=
RESULT +
$?
))
...
...
@@ -839,20 +840,14 @@ if [[ $RESULT != 0 ]] ; then
submitJiraComment 1
cleanupAndExit 1
fi
#prebuildWithoutPatch
((
RESULT
=
RESULT +
$?
))
if
[[
$RESULT
!=
0
]]
;
then
submitJiraComment 1
cleanupAndExit 1
fi
checkAuthor
((
RESULT
=
RESULT +
$?
))
if
[[
$JENKINS
==
"true"
]]
;
then
cleanUpXml
fi
#checkTests
((
RESULT
=
RESULT +
$?
))
applyPatch
APPLY_PATCH_RET
=
$?
((
RESULT
=
RESULT +
$APPLY_PATCH_RET
))
...
...
@@ -860,30 +855,11 @@ if [[ $APPLY_PATCH_RET != 0 ]] ; then
submitJiraComment 1
cleanupAndExit 1
fi
#checkJavacWarnings
JAVAC_RET
=
$?
#2 is returned if the code could not compile
if
[[
$JAVAC_RET
==
2
]]
;
then
submitJiraComment 1
cleanupAndExit 1
fi
((
RESULT
=
RESULT +
$JAVAC_RET
))
#checkJavadocWarnings
((
RESULT
=
RESULT +
$?
))
#checkStyle
((
RESULT
=
RESULT +
$?
))
#checkFindbugsWarnings
((
RESULT
=
RESULT +
$?
))
#checkReleaseAuditWarnings
((
RESULT
=
RESULT +
$?
))
buildAndInstall
### Run tests for Jenkins or if explictly asked for by a developer
if
[[
$JENKINS
==
"true"
||
$RUN_TESTS
==
"true"
]]
;
then
#runTests
((
RESULT
=
RESULT +
$?
))
fi
JIRA_COMMENT_FOOTER
=
"Test results:
$BUILD_URL
/testReport/
$JIRA_COMMENT_FOOTER
"
submitJiraComment
$RESULT
cleanupAndExit
$RESULT
cleanupAndExit
$RESULT
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment