: ${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
#!/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
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