Repository: yetus Updated Branches: refs/heads/master c08a3ee6c -> fdeee7bb8
YETUS-476. Replace docker's time handler with awk. Signed-off-by: Chris Nauroth <[email protected]> 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 <[email protected]> Authored: Mon Feb 6 19:27:32 2017 +0900 Committer: Chris Nauroth <[email protected]> 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
