]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
line wrapping: Use tmp/$flight.report in two extra places
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 Jan 2019 15:20:11 +0000 (15:20 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 Jan 2019 15:28:05 +0000 (15:28 +0000)
The output from sg-report-flight might in principle contain long
lines, although this is not expected.  So we are going to want to feed
it through the new cr-fold-long-lines.

Rather than piping, we are going to keep a copy of the .report file,
like is done in mg-execute-flight.  So for now, just make that change.

No overall change other than to leave behind the tmp/$flight.report
file.  It will be tidied up by the usual cleanup processes.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
cri-args-hostlists
cri-bisect

index 7d230875df986bf87f541fb4c834fd0a36011df6..a788e0951113061f80a8ff469c2174ad03b3dc23 100644 (file)
@@ -119,7 +119,8 @@ start_email () {
 
        ./sg-report-flight --html-dir=$flight_html_dir/$flight/ \
                --allow=allow.all --allow=allow.$branch \
-               $sgr_args $flight
+               $sgr_args $flight >tmp/$flight.report
+       cat tmp/$flight.report
 
        mkdir -p $host_html_dir
        with-lock-ex -w $globallockdir/report-lock \
index 28a8659a3cad7323bfcde7e187591ff422a23290..f8fc55a8a94424e8666782835303167690ba4131 100644 (file)
@@ -107,7 +107,8 @@ END
                if [ "x$OSSTEST_HTMLPUB_DIR" != x ]; then
                        sgr_args+=" --html-dir=$OSSTEST_HTMLPUB_DIR/$flight/"
                fi
-                ./sg-report-flight $sgr_args >&3 $flight
+                ./sg-report-flight $sgr_args $flight >tmp/$flight.report
+               cat tmp/$flight.report >&3
                 ./cr-publish-flight-logs --push-harness $flight
         fi
         exec 3>&-