From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [OSSTEST PATCH 24/33] cs-adjust-flight: Provide `jobs-del' operation Date: Fri, 18 Sep 2015 10:31:53 +0100 Message-ID: <1442568713.18856.279.camel@citrix.com> References: <1442511480-32587-1-git-send-email-ian.jackson@eu.citrix.com> <1442511480-32587-25-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zcs1N-0007wi-QW for xen-devel@lists.xenproject.org; Fri, 18 Sep 2015 09:31:57 +0000 In-Reply-To: <1442511480-32587-25-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: Ian Jackson , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2015-09-17 at 18:37 +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Missing an update to the comment describing the sub commands provided by this too. With that added: Acked-by: Ian Campbell < ian.campbell@citrix.com > > --- > v2: New patch > --- > cs-adjust-flight | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/cs-adjust-flight b/cs-adjust-flight > index 4056765..04ab6fe 100755 > --- a/cs-adjust-flight > +++ b/cs-adjust-flight > @@ -186,6 +186,13 @@ sub change__jobs_list { > }); > } > > +sub change__jobs_del { > + die unless @changes >= 1; > + my $jobspec = shift @changes; > + prep_rm_jobs(); > + for_jobs($dstflight, $jobspec, \&do_rm_job, 1); > +} > + > sub change__copy_jobs { > die unless @changes >= 2; > my $srcflight = shift @changes;