瀏覽代碼

HADOOP-11357. Print information of the build enviornment in test-patch.sh (aw)

Allen Wittenauer 10 年之前
父節點
當前提交
8847777ae4
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. 17 0
      dev-support/test-patch.sh
  2. 3 0
      hadoop-common-project/hadoop-common/CHANGES.txt

+ 17 - 0
dev-support/test-patch.sh

@@ -234,6 +234,21 @@ function add_jira_table
   fi
 }
 
+## @description  Put the final environment information at the bottom
+## @description  of the footer table
+## @stability     stable
+## @audience     private
+## @replaceable  yes
+function close_jira_footer
+{
+  # shellcheck disable=SC2016
+  local -r javaversion=$("${JAVA_HOME}/bin/java" -version 2>&1 | head -1 | ${AWK} '{print $NF}' | tr -d \")
+  local -r unamea=$(uname -a)
+
+  add_jira_footer "Java" "${javaversion}"
+  add_jira_footer "uname" "${unamea}"
+}
+
 ## @description  Put the final elapsed time at the bottom of the table.
 ## @audience     private
 ## @stability    stable
@@ -2389,6 +2404,8 @@ postinstall
 
 runtests
 
+close_jira_footer
+
 close_jira_table
 
 output_to_console ${RESULT}

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -519,6 +519,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-10597. RPC Server signals backoff to clients when all request
     queues are full. (Ming Ma via Arpit Agarwal)
 
+    HADOOP-11357. Print information of the build enviornment in test-patch.sh
+    (aw)
+
   OPTIMIZATIONS
 
     HADOOP-11785. Reduce the number of listStatus operation in distcp