Current regular expression used to match the buildjob works correctly when the
buildjob runvar has the <job_name>buildjob format, but not when the format is
<job_name>_buildjob (the first match group is empty in this case). Change it so
that it works for both formats.

Signed-off-by: Roger Pau Monné <roger....@citrix.com>
---
 ts-build-check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ts-build-check b/ts-build-check
index 92e19fb0..b9ade876 100755
--- a/ts-build-check
+++ b/ts-build-check
@@ -26,7 +26,7 @@ die if @ARGV && $ARGV[0] =~ m/^-/;
 logm("checking builds ...");
 
 foreach my $k (sort keys %r) {
-    next unless $k =~ m/^(?:.*_)?([^_]*)buildjob$/;
+    next unless $k =~ m/^(.*?)(_?)buildjob$/;
     my $part= $1;
     my $path= "path_${part}dist";
     logm("checking $k $path");
-- 
2.11.0 (Apple Git-81)


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

Reply via email to