yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-621. docker-cleanup doesn't support robot or sentinel correctly
Date Wed, 04 Apr 2018 19:24:48 GMT
Repository: yetus
Updated Branches:
  refs/heads/master b9a78c3db -> 19c9e9594


YETUS-621. docker-cleanup doesn't support robot or sentinel correctly

Signed-off-by: Sean Busbey <busbey@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/19c9e959
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/19c9e959
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/19c9e959

Branch: refs/heads/master
Commit: 19c9e95943a6df139e7a68d620c11021e71465f3
Parents: b9a78c3
Author: Allen Wittenauer <aw@apache.org>
Authored: Wed Mar 14 20:53:55 2018 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Wed Apr 4 12:23:58 2018 -0700

----------------------------------------------------------------------
 precommit/docker-cleanup.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/19c9e959/precommit/docker-cleanup.sh
----------------------------------------------------------------------
diff --git a/precommit/docker-cleanup.sh b/precommit/docker-cleanup.sh
index 4d18d21..0e2a94b 100755
--- a/precommit/docker-cleanup.sh
+++ b/precommit/docker-cleanup.sh
@@ -124,7 +124,25 @@ function setup_defaults
 ## @return       May exit on failure
 function parse_args
 {
+  declare i
+
   common_args "$@"
+
+  for i in "$@"; do
+    case ${i} in
+      --robot)
+        # shellcheck disable=SC2034
+        ROBOT=true
+      ;;
+      --sentinel)
+        # shellcheck disable=SC2034
+        ROBOT=true
+        # shellcheck disable=SC2034
+        SENTINEL=true
+        yetus_add_entry EXEC_MODES Sentinel
+      ;;
+    esac
+  done
 }
 
 ## @description  Print the usage information
@@ -138,6 +156,7 @@ function yetus_usage
   echo "${BINNAME} [OPTIONS]"
 
   yetus_add_option "--debug" "If set, then output some extra stuff to stderr"
+  yetus_add_option "--robot" "Assume this is an automated run"
   yetus_add_option "--sentinel" "A very aggressive robot (auto: --robot)"
   docker_usage
 


Mime
View raw message