|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 25/32] mg-execute-flight: New -P (publish) option
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
mg-execute-flight | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mg-execute-flight b/mg-execute-flight
index 287caa0..7f3d969 100755
--- a/mg-execute-flight
+++ b/mg-execute-flight
@@ -24,12 +24,15 @@ usage () { cat <<END
-B<blessing>
-E<email>
-f<basisflight>
+ -P [run cr-publish-flight-logs]
END
}
set -e
+publish=false
+
badusage () { echo >&2 "bad usage"; usage >&2; exit 126; }
while [ $# != 0 ]; do
@@ -38,6 +41,7 @@ while [ $# != 0 ]; do
-B?*) blessing=${arg#-B} ;;
-E?*) email=${arg#-E} ;;
-f?*) basisflightopt=--that-flight=${arg#-f} ;;
+ -P) publish=true ;;
[0-9]*) if [ "x$flight" != x ]; then badusage; fi
flight=$arg ;;
*) badusage ;;
@@ -90,5 +94,9 @@ cat <tmp/$flight.transcript
exec >&2
+if $publish; then
+ ./cr-publish-flight-logs $flight >/dev/null
+fi
+
/usr/sbin/sendmail -odi -oee -oi -t <tmp/$flight.email
mv tmp/$flight.email tmp/$flight.email.sent
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |