Skip to content

Commit f619c61

Browse files
committed
coverity: update tool download URL
Coverity changes its tool download URL every once in a while; update our scripts for the newest URL. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 642acfb commit f619c61

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

contrib/build-server/openmpi-nightly-coverity.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use File::Basename;
99

1010
my $coverity_project = "Open+MPI";
11+
# Coverity changes this URL periodically
12+
my $coverity_tool_url = "https://scan.coverity.com/download/cxx/linux64";
1113

1214
my $filename_arg;
1315
my $coverity_token_arg;
@@ -103,7 +105,7 @@ sub safe_system {
103105
my $now = time();
104106
if (!defined($mtime) || $mtime < $now - 24*60*60) {
105107
verbose "*** Downloading new copy of the coverity tool\n";
106-
safe_system(0, "wget https://scan.coverity.com/download/linux-64 --post-data \"token=$coverity_token_arg\&project=$coverity_project\" -O coverity_tool.tgz");
108+
safe_system(0, "wget $coverity_tool_url --post-data \"token=$coverity_token_arg\&project=$coverity_project\" -O coverity_tool.tgz");
107109
safe_system(0, "cp coverity_tool.tgz $cdir");
108110
}
109111

contrib/build-server/pmix-nightly-coverity.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use File::Basename;
99

1010
my $coverity_project = "open-mpi%2Fpmix";
11+
# Coverity changes this URL periodically
12+
my $coverity_tool_url = "https://scan.coverity.com/download/cxx/linux64";
1113

1214
my $filename_arg;
1315
my $coverity_token_arg;
@@ -103,7 +105,7 @@ sub safe_system {
103105
my $now = time();
104106
if (!defined($mtime) || $mtime < $now - 24*60*60) {
105107
verbose "*** Downloading new copy of the coverity tool\n";
106-
safe_system(0, "wget https://scan.coverity.com/download/linux-64 --post-data \"token=$coverity_token_arg\&project=$coverity_project\" -O coverity_tool.tgz");
108+
safe_system(0, "wget $coverity_tool_url --post-data \"token=$coverity_token_arg\&project=$coverity_project\" -O coverity_tool.tgz");
107109
safe_system(0, "cp coverity_tool.tgz $cdir");
108110
}
109111

0 commit comments

Comments
 (0)