Skip to contentSkip to conversation

standalone: Export BUILD_LVEXTEND_MAX when running make-flight.

PATCH In review Ian Campbell 2 participants 2 messages May 2, 2014 – May 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 standalone: Export BUILD_LVEXTEND_MAX when running make-flight.

This is stops the build taking over the entire VG and allows tests to be run without reinstalling the host.

---
 standalone | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
standalone +3 -1
index f00a81e..36f02ba 100755
@@ -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 \
Signature · 1 line
1.9.0
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] standalone: Export BUILD_LVEXTEND_MAX when running make-flight."):

Quoted 2 lines

This is stops the build taking over the entire VG and allows tests to be run without reinstalling the host.

And queued. I dropped the removal of the debugging echo from this commit since I had it already.

Ian.