HADOOP-11950. Add cli option to test-patch to set the project-under-test (Sean Busbey via aw)
This commit is contained in:
parent
6307687f7d
commit
cea8213c3e
|
@ -37,7 +37,6 @@ function setup_defaults
|
||||||
PROJECT_NAME=hadoop
|
PROJECT_NAME=hadoop
|
||||||
HOW_TO_CONTRIBUTE="https://wiki.apache.org/hadoop/HowToContribute"
|
HOW_TO_CONTRIBUTE="https://wiki.apache.org/hadoop/HowToContribute"
|
||||||
JENKINS=false
|
JENKINS=false
|
||||||
PATCH_DIR=/tmp/${PROJECT_NAME}-test-patch/$$
|
|
||||||
BASEDIR=$(pwd)
|
BASEDIR=$(pwd)
|
||||||
|
|
||||||
FINDBUGS_HOME=${FINDBUGS_HOME:-}
|
FINDBUGS_HOME=${FINDBUGS_HOME:-}
|
||||||
|
@ -585,6 +584,7 @@ function hadoop_usage
|
||||||
echo "--modulelist=<list> Specify additional modules to test (comma delimited)"
|
echo "--modulelist=<list> Specify additional modules to test (comma delimited)"
|
||||||
echo "--offline Avoid connecting to the Internet"
|
echo "--offline Avoid connecting to the Internet"
|
||||||
echo "--patch-dir=<dir> The directory for working and output files (default '/tmp/${PROJECT_NAME}-test-patch/pid')"
|
echo "--patch-dir=<dir> The directory for working and output files (default '/tmp/${PROJECT_NAME}-test-patch/pid')"
|
||||||
|
echo "--project=<name> The short name for project currently using test-patch (default 'hadoop')"
|
||||||
echo "--resetrepo Forcibly clean the repo"
|
echo "--resetrepo Forcibly clean the repo"
|
||||||
echo "--run-tests Run all relevant tests below the base directory"
|
echo "--run-tests Run all relevant tests below the base directory"
|
||||||
echo "--testlist=<list> Specify which subsystem tests to use (comma delimited)"
|
echo "--testlist=<list> Specify which subsystem tests to use (comma delimited)"
|
||||||
|
@ -695,7 +695,10 @@ function parse_args
|
||||||
PATCH=${i#*=}
|
PATCH=${i#*=}
|
||||||
;;
|
;;
|
||||||
--patch-dir=*)
|
--patch-dir=*)
|
||||||
PATCH_DIR=${i#*=}
|
USER_PATCH_DIR=${i#*=}
|
||||||
|
;;
|
||||||
|
--project=*)
|
||||||
|
PROJECT_NAME=${i#*=}
|
||||||
;;
|
;;
|
||||||
--ps-cmd=*)
|
--ps-cmd=*)
|
||||||
PS=${i#*=}
|
PS=${i#*=}
|
||||||
|
@ -755,6 +758,12 @@ function parse_args
|
||||||
JENKINS=false
|
JENKINS=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n ${USER_PATCH_DIR} ]]; then
|
||||||
|
PATCH_DIR="${USER_PATCH_DIR}"
|
||||||
|
else
|
||||||
|
PATCH_DIR=/tmp/${PROJECT_NAME}-test-patch/$$
|
||||||
|
fi
|
||||||
|
|
||||||
cd "${CWD}"
|
cd "${CWD}"
|
||||||
if [[ ! -d ${PATCH_DIR} ]]; then
|
if [[ ! -d ${PATCH_DIR} ]]; then
|
||||||
mkdir -p "${PATCH_DIR}"
|
mkdir -p "${PATCH_DIR}"
|
||||||
|
|
|
@ -86,6 +86,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-11906. test-patch.sh should use 'file' command for patch
|
HADOOP-11906. test-patch.sh should use 'file' command for patch
|
||||||
determinism (Sean Busbey via aw)
|
determinism (Sean Busbey via aw)
|
||||||
|
|
||||||
|
HADOOP-11950. Add cli option to test-patch to set the project-under-test
|
||||||
|
(Sean Busbey via aw)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||||
|
|
Loading…
Reference in New Issue