[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v4 06/11] osstest: fix ts-build-check to work with freebsd_buildjob



The output of the FreeBSD buildjob generates several files that are stashed
independently, so check each of them individually.

Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx>
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 ts-build-check | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/ts-build-check b/ts-build-check
index 0ae3be8..a3dc1ef 100755
--- a/ts-build-check
+++ b/ts-build-check
@@ -24,12 +24,24 @@ die if @ARGV && $ARGV[0] =~ m/^-/;
 
 logm("checking builds ...");
 
+sub check_path($$) {
+        my ($path, $job) = @_;
+        logm("checking $job $path");
+        get_stashed($path, $r{$job});
+}
+
 foreach my $k (sort keys %r) {
     next unless $k =~ m/^(?:.*_)?([^_]*)buildjob$/;
-    my $part= $1;
-    my $path= "path_${part}dist";
-    logm("checking $k $path");
-    get_stashed($path, $r{$k});
+
+    if ($k =~ m/^freebsd/) {
+        my @check = qw(MANIFEST kernel.txz base.txz mfsbsd.img);
+        foreach my $elem (@check) {
+            check_path("path_$elem", $k);
+        }
+    } else {
+        my $part= $1;
+        check_path("path_${part}dist", $k);
+    }
 }
 
 logm("all ok.");
-- 
1.9.3 (Apple Git-50)


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.