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

[Xen-devel] [OSSTEST PATCH 1/2] coverity: Parameterise CoverityToolsStripComponents



No functional change with current production-config.

(In fact, this needs to be 2 for cov-analysis-linux64-2017.07.tar.gz)

Reported-by: Wei Liu <wei.liu2@xxxxxxxxxx>
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 production-config | 1 +
 ts-coverity-build | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/production-config b/production-config
index 1bc56d8..bc961e6 100644
--- a/production-config
+++ b/production-config
@@ -115,6 +115,7 @@ CoverityEmail security@xxxxxxx
 # gets the default/dummy path
 CoverityUploadUrl https://scan.coverity.com/builds?project=XenProject
 CoverityTools cov-analysis-linux64-2017.07.tar.gz
+CoverityToolsStripComponents 1
 
 # We use the IP address because Citrix can't manage reliable nameservice
 #DebianMirrorHost debian.uk.xensource.com
diff --git a/ts-coverity-build b/ts-coverity-build
index 6e29102..dc6320a 100755
--- a/ts-coverity-build
+++ b/ts-coverity-build
@@ -37,12 +37,14 @@ sub checkout () {
 
 sub covtools () {
     target_putfile($ho, 100, "$c{Images}/$c{CoverityTools}", 
"$builddir/covtools.tar.gz");
+    my $strip = $c{CoverityToolsStripComponents} // 0;
+    $strip = $strip ? "--strip-components=$strip" : '';
     target_cmd($ho, <<END, 100);
 set -xe
 c=$builddir/covtools
 mkdir -p \$c
 cd \$c
-tar --strip-components=1 -xaf $builddir/covtools.tar.gz
+tar $strip -xaf $builddir/covtools.tar.gz
 END
 }
 
-- 
2.1.4


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

 


Rackspace

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