* [OSSTEST PATCH] mg-repro-setup: --autoalloc-nofree option
@ 2017-10-19 10:15 Ian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2017-10-19 10:15 UTC (permalink / raw)
To: xen-devel; +Cc: Wei Liu, Ian Jackson
This lets you run the automatic allocator within your own task, so you
get to keep whatever it found.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
mg-repro-setup | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/mg-repro-setup b/mg-repro-setup
index 25cbc78..0bafb53 100755
--- a/mg-repro-setup
+++ b/mg-repro-setup
@@ -58,6 +58,7 @@ logfile=tmp/mg-repro-setup.log
duration=28d
blessing=play
skipcapture=true
+autoalloc=false
while true; do
case "$1" in
@@ -72,6 +73,7 @@ while true; do
-t?*) duration=${arg#-t} ;;
--rogue) duration='' ;;
--capture) skipcapture=false ;;
+ --autoalloc-nofree) autoalloc=true ;;
-l*) logfile=${arg#-l} ;;
-r!*) adjustsets+=("${arg#-r}") ;;
-r*=*) adjustsets+=("${arg#-r}") ;;
@@ -204,7 +206,10 @@ if $skipcapture; then adjrunvar skip_testids "capture-logs*"; fi
progress "executing ..."
-OSSTEST_NOALLOCATE=1 \
+if ! $autoalloc; then
+ export OSSTEST_NOALLOCATE=1
+fi
+
./mg-execute-flight -B$blessing -f$refflight --progress-fd=2 \
"${mgexecflags[@]}" $flight
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread* [OSSTEST PATCH] mg-repro-setup: --autoalloc-nofree option
@ 2017-10-19 10:23 Ian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2017-10-19 10:23 UTC (permalink / raw)
To: xen-devel; +Cc: Wei Liu, Ian Jackson
This lets you run the automatic allocator within your own task, so you
get to keep whatever it found.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
v2: Some docs, and a warning message.
---
mg-repro-setup | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/mg-repro-setup b/mg-repro-setup
index 25cbc78..a46e6d3 100755
--- a/mg-repro-setup
+++ b/mg-repro-setup
@@ -39,7 +39,8 @@ usage () { cat <<END
-r!<var> delete runvar
-B<blessing> default is 'play'
-E... -f... -P as for mg-execute-flight
-
+ --autoalloc-nofree allocate hosts as for production, but keep them
+ (specify no HOSTSPECS; remember to deallocate later)
END
}
@@ -58,6 +59,7 @@ logfile=tmp/mg-repro-setup.log
duration=28d
blessing=play
skipcapture=true
+autoalloc=false
while true; do
case "$1" in
@@ -72,6 +74,7 @@ while true; do
-t?*) duration=${arg#-t} ;;
--rogue) duration='' ;;
--capture) skipcapture=false ;;
+ --autoalloc-nofree) autoalloc=true ;;
-l*) logfile=${arg#-l} ;;
-r!*) adjustsets+=("${arg#-r}") ;;
-r*=*) adjustsets+=("${arg#-r}") ;;
@@ -189,6 +192,10 @@ if [ "${alloc_idents[*]}" ]; then
progressf " %s" "$host"
done
progressf "\n"
+ if $autoalloc; then
+ echo >&2 \
+ 'warning: --autoalloc-nofree and HOSTSPECs are do not work well together'
+ fi
fi
progress "setting up flight ..."
@@ -204,7 +211,10 @@ if $skipcapture; then adjrunvar skip_testids "capture-logs*"; fi
progress "executing ..."
-OSSTEST_NOALLOCATE=1 \
+if ! $autoalloc; then
+ export OSSTEST_NOALLOCATE=1
+fi
+
./mg-execute-flight -B$blessing -f$refflight --progress-fd=2 \
"${mgexecflags[@]}" $flight
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-19 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19 10:15 [OSSTEST PATCH] mg-repro-setup: --autoalloc-nofree option Ian Jackson
-- strict thread matches above, loose matches on Subject: below --
2017-10-19 10:23 Ian Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).