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-725. shortcut qbt calcdiffs
Date Fri, 30 Nov 2018 17:00:51 GMT
Repository: yetus
Updated Branches:
  refs/heads/master d36572c2a -> 22aaadf10


YETUS-725. shortcut qbt calcdiffs

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/22aaadf1
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/22aaadf1
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/22aaadf1

Branch: refs/heads/master
Commit: 22aaadf10c4f9d22616612291a5a225641abf203
Parents: d36572c
Author: Allen Wittenauer <aw@apache.org>
Authored: Tue Nov 27 14:47:27 2018 -0800
Committer: Allen Wittenauer <aw@apache.org>
Committed: Fri Nov 30 09:00:39 2018 -0800

----------------------------------------------------------------------
 precommit/src/main/shell/test-patch.sh | 31 ++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/22aaadf1/precommit/src/main/shell/test-patch.sh
----------------------------------------------------------------------
diff --git a/precommit/src/main/shell/test-patch.sh b/precommit/src/main/shell/test-patch.sh
index 967c76b..7d9c363 100755
--- a/precommit/src/main/shell/test-patch.sh
+++ b/precommit/src/main/shell/test-patch.sh
@@ -2506,12 +2506,15 @@ function column_calcdiffs
      "${tmp}.branch" \
      "${tmp}.patch" > "${tmp}.lined"
 
-  # now, pull out those lines of the raw output
-  # shellcheck disable=SC2013
-  for j in $(cat "${tmp}.lined"); do
-    # shellcheck disable=SC2086
-    head -${j} "${patch}" | tail -1
-  done
+  if [[ "${BUILDMODE}" == full ]]; then
+    cat "${patch}"
+  else
+    # now, pull out those lines of the raw output
+    # shellcheck disable=SC2013
+    for j in $(cat "${tmp}.lined"); do
+      head -"${j}" "${patch}" | tail -1
+    done
+  fi
 
   rm "${tmp}.branch" "${tmp}.patch" "${tmp}.lined" 2>/dev/null
 }
@@ -2547,12 +2550,16 @@ function error_calcdiffs
      "${tmp}.branch" \
      "${tmp}.patch" > "${tmp}.lined"
 
-  # now, pull out those lines of the raw output
-  # shellcheck disable=SC2013
-  for j in $(cat "${tmp}.lined"); do
-    # shellcheck disable=SC2086
-    head -${j} "${patch}" | tail -1
-  done
+  if [[ "${BUILDMODE}" == full ]]; then
+    cat "${patch}"
+  else
+
+    # now, pull out those lines of the raw output
+    # shellcheck disable=SC2013
+    for j in $(cat "${tmp}.lined"); do
+      head -"${j}" "${patch}" | tail -1
+    done
+  fi
 
   rm "${tmp}.branch" "${tmp}.patch" "${tmp}.lined" 2>/dev/null
 }


Mime
View raw message