Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 753C7200C2F for ; Mon, 6 Mar 2017 20:37:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 738C1160B76; Mon, 6 Mar 2017 19:37:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB63B160B66 for ; Mon, 6 Mar 2017 20:37:17 +0100 (CET) Received: (qmail 94932 invoked by uid 500); 6 Mar 2017 19:37:16 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 94923 invoked by uid 99); 6 Mar 2017 19:37:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 19:37:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C0AD1DFBD9; Mon, 6 Mar 2017 19:37:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cnauroth@apache.org To: commits@yetus.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: yetus git commit: YETUS-476. Replace docker's time handler with awk. Date: Mon, 6 Mar 2017 19:37:16 +0000 (UTC) archived-at: Mon, 06 Mar 2017 19:37:18 -0000 Repository: yetus Updated Branches: refs/heads/master c08a3ee6c -> fdeee7bb8 YETUS-476. Replace docker's time handler with awk. Signed-off-by: Chris Nauroth Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/fdeee7bb Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/fdeee7bb Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/fdeee7bb Branch: refs/heads/master Commit: fdeee7bb8466e69f81111dc14508a27c741ed1ce Parents: c08a3ee Author: Akira Ajisaka Authored: Mon Feb 6 19:27:32 2017 +0900 Committer: Chris Nauroth Committed: Mon Mar 6 11:37:04 2017 -0800 ---------------------------------------------------------------------- precommit/core.d/docker.sh | 2 +- precommit/test-patch.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/fdeee7bb/precommit/core.d/docker.sh ---------------------------------------------------------------------- diff --git a/precommit/core.d/docker.sh b/precommit/core.d/docker.sh index e933883..cffa4b4 100755 --- a/precommit/core.d/docker.sh +++ b/precommit/core.d/docker.sh @@ -303,7 +303,7 @@ function docker_container_maintenance tmptime=$(echo "${line}" | cut -f5 -d, | cut -f1 -d. ) stoptime=$(dockerdate_to_ctime "${tmptime}") name=$(echo "${line}" | cut -f6 -d, ) - curtime=$(TZ=UTC date "+%s") + curtime=$("${AWK}" 'BEGIN {srand(); print srand()}') remove=false case ${status} in http://git-wip-us.apache.org/repos/asf/yetus/blob/fdeee7bb/precommit/test-patch.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh index 25294a4..0ca3d91 100755 --- a/precommit/test-patch.sh +++ b/precommit/test-patch.sh @@ -29,7 +29,6 @@ BINNAME=${this##*/} BINNAME=${BINNAME%.sh} STARTINGDIR=$(pwd) USER_PARAMS=("$@") -GLOBALTIMER=$(date +"%s") #shellcheck disable=SC2034 QATESTMODE=false @@ -67,6 +66,7 @@ function setup_defaults declare version="in-progress" common_defaults + GLOBALTIMER=$("${AWK}" 'BEGIN {srand(); print srand()}') if [[ -f "${BINDIR}/../VERSION" ]]; then version=$(cat "${BINDIR}/../VERSION") @@ -97,7 +97,7 @@ function setup_defaults # shellcheck disable=SC2034 BUILDMODEMSG="The patch" ISSUE="" - TIMER=$(date +"%s") + TIMER=$("${AWK}" 'BEGIN {srand(); print srand()}') JVM_REQUIRED=true yetus_add_entry JDK_TEST_LIST compile yetus_add_entry JDK_TEST_LIST unit