You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2016/04/22 22:25:30 UTC
[12/22] yetus git commit: YETUS-353. runtime wrapper for build driver
YETUS-353. runtime wrapper for build driver
Signed-off-by: Allen Wittenauer <aw...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/d5e00322
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/d5e00322
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/d5e00322
Branch: refs/heads/YETUS-156
Commit: d5e00322808f626477cc04d0ab52af0c791f81f9
Parents: ce6d4d4
Author: Allen Wittenauer <aw...@apache.org>
Authored: Tue Mar 29 17:12:43 2016 -0700
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Fri Apr 22 13:25:07 2016 -0700
----------------------------------------------------------------------
build.sh | 3 ++-
precommit/test-patch.sh | 8 +++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/yetus/blob/d5e00322/build.sh
----------------------------------------------------------------------
diff --git a/build.sh b/build.sh
index 9fecbec..d5f3904 100755
--- a/build.sh
+++ b/build.sh
@@ -169,6 +169,7 @@ cp -r shelldocs "${bin_tarball}/lib/"
cp -r release-doc-maker "${bin_tarball}/lib/"
cp -r precommit "${bin_tarball}/lib/"
+ln -s test-patch.sh "${bin_tarball}/lib/precommit/qbt.sh"
mkdir -p "${bin_tarball}/bin"
@@ -204,7 +205,7 @@ exec "\$(dirname -- "\${BASH_SOURCE-0}")/../lib/release-doc-maker/releasedocmake
EOF
chmod +x "${bin_tarball}/bin/releasedocmaker"
-for utility in shelldocs/shelldocs.py \
+for utility in shelldocs/shelldocs.py precommit/qbt.sh \
precommit/smart-apply-patch.sh precommit/test-patch.sh
do
wrapper=${utility##*/}
http://git-wip-us.apache.org/repos/asf/yetus/blob/d5e00322/precommit/test-patch.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh
index 23e7c3a..f3dbc92 100755
--- a/precommit/test-patch.sh
+++ b/precommit/test-patch.sh
@@ -25,6 +25,8 @@ fi
this="${BASH_SOURCE-$0}"
BINDIR=$(cd -P -- "$(dirname -- "${this}")" >/dev/null && pwd -P)
+BINNAME=${this##*/}
+BINNAME=${BINNAME%.sh}
STARTINGDIR=$(pwd)
USER_PARAMS=("$@")
GLOBALTIMER=$(date +"%s")
@@ -3031,7 +3033,11 @@ function import_core
import_core
-initialize "$@"
+if [[ "${BINNAME}" =~ qbt ]]; then
+ initialize --empty-patch "$@"
+else
+ initialize "$@"
+fi
prechecks