diff mbox

[OSSTEST,02/11] ts-coverity-upload: Pass HttpsProxyMITMCert to curl

Message ID 1492531012-14315-3-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson April 18, 2017, 3:56 p.m. UTC
"proxy config: Add ability to install MITM TLS cert" sets this up on
the test hosts, but not the controller.

We don't really want this odd configuration globally on the
controller.  Instead, we have to pass it where it is needed.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ts-coverity-upload | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/ts-coverity-upload b/ts-coverity-upload
index bcdfa91..c52bb87 100755
--- a/ts-coverity-upload
+++ b/ts-coverity-upload
@@ -47,6 +47,11 @@  sub upload() {
     my $proxy = $c{CoverityHttpProxy} // $c{HttpProxy};
     push @args, qw(-x), $proxy if $proxy;
 
+    if ($c{HttpsProxyMITMCert}) {
+        push @args, qw(--cacert),
+            stashfilecontents($c{HttpsProxyMITMCert}, "cacert.pem");
+    }
+
     push @args, qw(--max-time 7200);
     push @args, qw(--fail); # turn 404 etc into a failure.
     push @args, $r{coverity_submit_url};