All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: [OSSTEST PATCH 3/4] mg-adjust-flight-makexrefs: Use ^ for excluding jobs, not !
Date: Thu, 3 May 2018 15:58:14 +0100	[thread overview]
Message-ID: <1525359495-30844-4-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1525359495-30844-1-git-send-email-ian.jackson@eu.citrix.com>

The ! here doesn't cause shell rune trouble in practice very much, but
we want to move to using ^ everywhere for consistency.

We still honour !.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 cr-daily-branch            | 2 +-
 mg-adjust-flight-makexrefs | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cr-daily-branch b/cr-daily-branch
index 14e8595..a06d5a4 100755
--- a/cr-daily-branch
+++ b/cr-daily-branch
@@ -343,7 +343,7 @@ xen-unstable-smoke)
 	: ${SMOKE_HARNESS_REV:=$harness_rev}
 
 	./mg-adjust-flight-makexrefs -v $flight \
-		'!build-*-xsm !build-*-libvirt build-*-*' \
+		'^build-*-xsm ^build-*-libvirt build-*-*' \
 		--debug --blessings=real				\
 		--branch=xen-unstable,xen-unstable-smoke,osstest	\
 		--revision-osstest=$SMOKE_HARNESS_REV
diff --git a/mg-adjust-flight-makexrefs b/mg-adjust-flight-makexrefs
index 3e02ef3..16a0d98 100755
--- a/mg-adjust-flight-makexrefs
+++ b/mg-adjust-flight-makexrefs
@@ -1,15 +1,16 @@
 #!/bin/bash
 #
 # usage: ./mg-adjust-flight-makexrefs [OPTIONS..] FLIGHT	\
-#		'[!]JOB-GLOB ...'		  		\
+#		'[^]JOB-GLOB ...'		  		\
 #		REF-CONDS...
 #
 # JOB-GLOB is as for shell `case'.  Sense of first match is used.
 # If no match for a job, uses reverse of sense of last glob.
 #
-# ! means keep such jobs in FLIGHT.  Without ! means delete each such
+# ^ means keep such jobs in FLIGHT.  Without ^ means delete each such
 # job from FLIGHT and replace intra-flight references to it with
 # references to the same job in a suitable other flight.
+# (! may be used instead of ^.)
 #
 # `Suitable' means one in which the required job passed, subject to
 # REF-CONDS (which are passed to sg-check-tested).  REF-CONDS really
@@ -59,7 +60,7 @@ for j in `./cs-adjust-flight $flight jobs-list '^build-'`; do
 
 	for glob in $keepjobs; do
 		case "$glob" in
-		!*) ifmatch=$tokeep; action=$todelete ; glob="${glob#!}" ;;
+		[!^]*) ifmatch=$tokeep; action=$todelete ; glob="${glob#?}" ;;
 		*)  ifmatch=$todelete; action=$tokeep ;;
 		esac
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-05-03 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-03 14:58 [OSSTEST PATCH 0/4] Use ^ for negation, not ! Ian Jackson
2018-05-03 14:58 ` [OSSTEST PATCH 1/4] mg-allocate: Use ^ for deallocation, " Ian Jackson
2018-05-03 14:58 ` [OSSTEST PATCH 2/4] mg-hosts: Use ^ for flag negation, " Ian Jackson
2018-05-03 14:58 ` Ian Jackson [this message]
2018-05-03 14:58 ` [OSSTEST PATCH 4/4] Standalone HostFlags: Use ^ for " Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1525359495-30844-4-git-send-email-ian.jackson@eu.citrix.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.