From: Ian Jackson Subject: [OSSTEST PATCH 25/32] mg-execute-flight: New -P (publish) option Date: Tue, 24 Mar 2015 19:02:48 +0000 Message-ID: <1427223775-8592-26-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU6b-00006W-J8 for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:13 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- 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 < -E -f + -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 &2 +if $publish; then + ./cr-publish-flight-logs $flight >/dev/null +fi + /usr/sbin/sendmail -odi -oee -oi -t