diff mbox

[Xen-devel,OSSTEST] standalone: Export BUILD_LVEXTEND_MAX when running make-flight.

Message ID 1399026184-3268-1-git-send-email-ian.campbell@citrix.com
State New
Headers show

Commit Message

Ian Campbell May 2, 2014, 10:23 a.m. UTC
This is stops the build taking over the entire VG and allows tests to be run
without reinstalling the host.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 standalone | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/standalone b/standalone
index f00a81e..36f02ba 100755
--- a/standalone
+++ b/standalone
@@ -63,6 +63,7 @@  config=$HOME/.xen-osstest/config
 flight="standalone"
 host=
 reuse=1 # Don't blow away machines by default
+lvextendmax=50 # Leave some LVM space free for running tests
 
 while true ; do
     case "$1" in
@@ -71,6 +72,7 @@  while true ; do
 	-h|--host)   host=$2;   shift 2;;
 	-r|--reuse)  reuse=1;   shift 1;;
 	-R|--noreuse|--reinstall)reuse=0;shift 1;;
+	--lvextendmax)lvextendmax=$2; shift 2;;
 	--help)      usage; exit 0;;
         --) shift ; break ;;
         *) echo "Internal error!" ; exit 1 ;;
@@ -81,7 +83,6 @@  done
 . cri-getconfig
 
 WebspaceLog=`OSSTEST_CONFIG=$config getconfig WebspaceLog`
-echo $WebspaceLog
 if [ ! -r "$WebspaceLog" ] ; then
     echo "WARNING: Cannot read apache logs at $WebspaceLog. Some tests may fail" >&2
 fi
@@ -159,6 +160,7 @@  case $op in
         DAILY_BRANCH_PREEXEC_HOOK=exit\ 0 \
         OSSTEST_USE_HEAD=y \
         BRANCHES_ALWAYS="$branch" \
+        BUILD_LVEXTEND_MAX="$lvextendmax" \
         OSSTEST_FLIGHT=$flight \
         OSSTEST_CONFIG=$config \
         OSSTEST_NO_BASELINE=y \