From: Ian Jackson Subject: Re: [PATCH OSSTEST] cs-adjust-flight: Add job-rename command which applies a perlop to job names Date: Thu, 10 Dec 2015 17:09:24 +0000 Message-ID: <22121.45508.96904.175527@mariner.uk.xensource.com> References: <1449766167-27901-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1449766167-27901-1-git-send-email-ian.campbell@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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] cs-adjust-flight: Add job-rename command which applies a perlop to job names"): > My intention was to allow creation of adhoc jobs based on a template > but modified e.g. to enable/disable XSM with a sequence something > like: > > ./cs-adjust-flight $flight copy-jobs $template test-foo-xsm > ./cs-adjust-flight $flight rename-job test-foo-xsm 's/-xsm$//' > ./cs-adjust-flight $flight runvar-set $job enable_xsm false > ./cs-adjust-flight ... update %buildjob > > Signed-off-by: Ian Campbell Acked-by: Ian Jackson Although maybe it should be called `jobs-rename' by analogy with the other modifiers ? Arguably job-status should be renamed too. But arguably it ought not since when it is used to print the status of several jobs its output is different (and necessarily fiddlier). Ian.