yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [05/11] yetus git commit: YETUS-353. runtime wrapper for build driver
Date Sat, 09 Apr 2016 16:24:28 GMT
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/7f0fea79
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/7f0fea79
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/7f0fea79

Branch: refs/heads/YETUS-156
Commit: 7f0fea79e364e0f1d7deb3341170a3db5841bbdb
Parents: 78154e1
Author: Allen Wittenauer <aw@apache.org>
Authored: Tue Mar 29 17:12:43 2016 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Sat Apr 9 09:23:50 2016 -0700

----------------------------------------------------------------------
 build.sh                | 4 +++-
 precommit/test-patch.sh | 8 +++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/7f0fea79/build.sh
----------------------------------------------------------------------
diff --git a/build.sh b/build.sh
index ebf2872..3fd24f7 100755
--- a/build.sh
+++ b/build.sh
@@ -167,11 +167,13 @@ 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"
 
 for utility in shelldocs/shelldocs.py release-doc-maker/releasedocmaker.py \
-               precommit/smart-apply-patch.sh precommit/test-patch.sh
+               precommit/smart-apply-patch.sh precommit/test-patch.sh \
+               precommit/qbt.sh
 do
   wrapper=${utility##*/}
   wrapper=${wrapper%.*}

http://git-wip-us.apache.org/repos/asf/yetus/blob/7f0fea79/precommit/test-patch.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh
index e01ee87..f4752b5 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")
@@ -2995,7 +2997,11 @@ function import_core
 
 import_core
 
-initialize "$@"
+if [[ "${BINNAME}" =~ qbt ]]; then
+  initialize --empty-patch "$@"
+else
+  initialize "$@"
+fi
 
 prechecks
 


Mime
View raw message