diff mbox

[OSSTEST,07/11] mg-repro-setup: skip log capture (by default)

Message ID 1492531012-14315-8-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson April 18, 2017, 3:56 p.m. UTC
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 mg-repro-setup | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/mg-repro-setup b/mg-repro-setup
index bb429b4..af679d0 100755
--- a/mg-repro-setup
+++ b/mg-repro-setup
@@ -34,6 +34,7 @@  usage () { cat <<END
  OPTIONs
    -t<duration>         estimated duration (default = 28d)
    --rogue              bypass queuing system and allocate now
+   --capture            do not suppress log capture
    -r<var>=<value>      set runvar
    -r!<var>             delete runvar
    -B<blessing>		default is 'play'
@@ -54,6 +55,7 @@  allocs=()
 logfile=tmp/mg-repro-setup.log
 duration=28d
 blessing=play
+skipcapture=true
 
 while true; do
 	case "$1" in
@@ -67,6 +69,7 @@  while true; do
         -f?*)		refflight=${arg#-f}		;;
 	-t?*)		duration=${arg#-t}		;;
 	--rogue)	duration=''			;;
+	--capture)	skipcapture=false		;;
 	-l*)		logfile=${arg#-l}		;;
 	-r!*)		adjustsets+=("${arg#-r}")	;;
 	-r*=*)		adjustsets+=("${arg#-r}")	;;
@@ -188,6 +191,8 @@  progress "setting up flight ..."
 
 adjrunvar truncate_testids "$testid"
 
+if $skipcapture; then adjrunvar skip_testids "capture-logs*"; fi
+
 ./cs-adjust-flight $flight						\
 	copy-jobs $example_flight $job					\
 	runvar-build-set . '/buildjob$' '^[^\.]+$' $example_flight	\