From 4889403cec6879962e9f03e711fc8ecb158fc24c Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 12 Feb 2008 15:11:53 -0500 Subject: add support for clone the local developers version of the repo to test --- test/test-it.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test-it.sh b/test/test-it.sh index a0bfccb..ee04bb6 100755 --- a/test/test-it.sh +++ b/test/test-it.sh @@ -23,6 +23,9 @@ BUILD=Y # do we do a fresh pull from git to build BUILD_FROM_FRESH_CHECKOUT=N +# do we use the master repo, or clone localy +# you really need to change both of these +CLONE_LOCAL_REPO=Y # do we build/uninstall via rpms? INSTALL_VIA_RPMS=N @@ -72,7 +75,15 @@ check_out_code() rm -rf $BUILD_PATH mkdir -p $BUILD_PATH pushd $BUILD_PATH - git clone git://git.fedorahosted.org/func.git + + GIT_REPO="git://git.fedorahosted.org/func.git" + if [ "$CLONE_LOCAL_REPO" == "Y" ] ; then + msg "Building from a checkout of the local git repo" + git clone $BASE_DIR + else + msg "Building from a checkout from $GIT_REPO" + git clone $GIT_REPO + fi echo $? popd } -- cgit