From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH OSSTEST] ts-xen-build: make collection on xen-syms optional
Date: Fri, 1 Nov 2013 13:03:00 +0000 [thread overview]
Message-ID: <1383310980-8000-1-git-send-email-ian.campbell@citrix.com> (raw)
Fixes things on i386 for branches which no longer build an i386 hypervisor.
---
Osstest/TestSupport.pm | 8 ++++++--
ts-xen-build | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 1ac4cf7..d2e29d0 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -846,6 +846,7 @@ sub get_stashed ($$) {
sub compress_stashed($) {
my ($path) = @_;
+ return unless -e "$stash/$path";
my $r= system 'gzip','-9vf','--',"$stash/$path";
die "$r $!" if $r;
}
@@ -1051,10 +1052,13 @@ END
store_runvar("path_$item", $stashleaf);
}
-sub built_stash_file ($$$$) {
- my ($ho, $builddir, $item, $fname) = @_;
+sub built_stash_file ($$$$;$) {
+ my ($ho, $builddir, $item, $fname, $optional) = @_;
my $build= "build";
my $stashleaf= "$build/$item";
+
+ return if $optional && !target_file_exists($ho, "$builddir/$fname");
+
ensuredir("$stash/$build");
target_getfile($ho, 300,
"$builddir/$fname",
diff --git a/ts-xen-build b/ts-xen-build
index 5f544df..ebb7d6f 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -198,7 +198,7 @@ sub stash () {
"xen-unstable/dist/${part}install",
"${part}dist");
}
- built_stash_file($ho, $builddir, "xen-syms", "xen-unstable/xen/xen-syms");
+ built_stash_file($ho, $builddir, "xen-syms", "xen-unstable/xen/xen-syms", 1);
built_compress_stashed("xen-syms");
}
--
1.7.10.4
next reply other threads:[~2013-11-01 13:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 13:03 Ian Campbell [this message]
2013-11-01 15:41 ` [PATCH OSSTEST] ts-xen-build: make collection on xen-syms optional Ian Jackson
2013-11-01 15:49 ` Ian Campbell
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=1383310980-8000-1-git-send-email-ian.campbell@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.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 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).