[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH v2 07/17] cri-args-hostlists: Break out report_flight and publish_logs



From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

NFC.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 cri-args-hostlists | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/cri-args-hostlists b/cri-args-hostlists
index 7019c0c7..52e39f33 100644
--- a/cri-args-hostlists
+++ b/cri-args-hostlists
@@ -128,10 +128,7 @@ start_email () {
 
        date >&2
 
-       ./sg-report-flight --report-processing-start-time \
-               --html-dir=$flight_html_dir/$flight/ \
-               --allow=allow.all --allow=allow.$branch \
-               $sgr_args $flight >tmp/$flight.report
+       report_flight $flight
        ./cr-fold-long-lines tmp/$flight.report
 
        date >&2
@@ -144,11 +141,23 @@ start_email () {
        date >&2
 }
 
+report_flight () {
+       local flight=$1
+       ./sg-report-flight --html-dir=$flight_html_dir/$flight/ \
+               --allow=allow.all --allow=allow.$branch \
+               $sgr_args $flight >tmp/$flight.report
+}
+
+publish_logs () {
+       local flight=$1
+       ./cr-publish-flight-logs ${OSSTEST_PUSH_HARNESS- --push-harness} \
+           $flight >&2
+}
+
 publish_send_email () {
        local flight=$1
+       publish_logs $flight
        exec >&2
-       ./cr-publish-flight-logs ${OSSTEST_PUSH_HARNESS- --push-harness} \
-           $flight
        send_email tmp/$flight.email
 }
 
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.