Skip to content

Commit

Permalink
GEODE-4666: use single-bracket comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
PurelyApplied authored Mar 8, 2018
2 parents 5e6e4f5 + bbf4b2a commit 2eb58b8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ subprojects {
environment 'PATH', geodePath
ignoreExitValue true
commandLine 'sh', '-c', "" +
"TIMEOUT=10 ;" +
"TIMEOUT=120 ;" +
"echo \"Waiting at most \$TIMEOUT seconds for all members to shut down...\" ;" +
"while pgrep -f \"(Server|Locator)Launcher\" > /dev/null ; do printf \".\" ; " +
"while pgrep -f \"(Server|Locator)Launcher\" > /dev/null ; do" +
" printf \".\" ; " +
" sleep 1 ;" +
" TIMEOUT=\$((\$TIMEOUT - 1)) ;" +
" if [[ \$TIMEOUT -eq 0 ]] ; then" +
" if [ \$TIMEOUT -eq 0 ] ; then" +
" echo \"\" ;" +
" exit 10 ;" +
" fi ;" +
Expand All @@ -131,7 +132,8 @@ subprojects {
environment 'GEODE_HOME', installDir
environment 'PATH', geodePath
ignoreExitValue true
commandLine 'sh', '-c', "pgrep -f \"(Server|Locator)Launcher\" > /dev/null ; "
commandLine 'sh', '-c', "echo \"Looking for existing member processes...\" ; " +
"pgrep -f \"(Server|Locator)Launcher\" ; "
doLast {
if (execResult.exitValue == 0) {
throw new GradleException("Existing members detected. Examples expect a clean environment in which to run.")
Expand Down

0 comments on commit 2eb58b8

Please sign in to comment.