From 070442fe9e3a876b0329315f61aaf37d91752e0f Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 17 2011 09:16:10 +0000 Subject: make it easier to run these tests outside the QA harness --- diff --git a/doc/RunningTests b/doc/RunningTests new file mode 100644 index 0000000..369d40d --- /dev/null +++ b/doc/RunningTests @@ -0,0 +1,2 @@ +To run these tests on your local machine, set SKIP_QA_REPOS=1 in the bash environment before calling runtests.sh. eg: +SKIP_QA_REPOS=1 ./runtests.sh diff --git a/tests/0_common/00_qa_repo_config.sh b/tests/0_common/00_qa_repo_config.sh index ce619cd..dbcd609 100755 --- a/tests/0_common/00_qa_repo_config.sh +++ b/tests/0_common/00_qa_repo_config.sh @@ -1,6 +1,10 @@ #!/bin/bash t_Log "Running $0 - modifying yum repositories for QA purposes." +if [ $SKIP_QA_REPOS ]; then + echo 'Skip..' + exit 0 +fi # Disable the normal repositories and points to the QA repo #mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.disabled