xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH 1/4] cs-ajust-flight: Use qr{} syntax
@ 2016-12-02 11:55 Ian Jackson
  2016-12-02 11:55 ` [OSSTEST PATCH 2/4] cs-adjust-flight: Lift notspec_exfn out of for_things Ian Jackson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ian Jackson @ 2016-12-02 11:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson

This is more regular and potentially more efficient,
but has no functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 cs-adjust-flight | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cs-adjust-flight b/cs-adjust-flight
index 04f5a7e..02fd2cf 100755
--- a/cs-adjust-flight
+++ b/cs-adjust-flight
@@ -84,9 +84,9 @@ our $dstflight;
 
 sub spec_re ($) {
     my ($spec) = @_;
-    if ($spec eq '.') { return '(?:)'; }
-    if ($spec =~ m/^\^/) { return $spec; }
-    if ($spec =~ m/^\//) { return $'; } #';}
+    if ($spec eq '.') { return qr{(?:)}; }
+    if ($spec =~ m/^\^/) { return qr{$spec}; }
+    if ($spec =~ m/^\//) { return qr{$'}; } #';}
     return undef;
 }
 
-- 
2.1.4


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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-05 16:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 11:55 [OSSTEST PATCH 1/4] cs-ajust-flight: Use qr{} syntax Ian Jackson
2016-12-02 11:55 ` [OSSTEST PATCH 2/4] cs-adjust-flight: Lift notspec_exfn out of for_things Ian Jackson
2016-12-02 11:55 ` [OSSTEST PATCH 3/4] cs-ajust-flight: Provide runvar-build-set Ian Jackson
2016-12-02 11:55 ` [OSSTEST PATCH 4/4] ts-xtf-*: Provide for host specs on command line Ian Jackson
2016-12-02 11:57   ` Wei Liu
2017-02-05 16:42   ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).