summaryrefslogtreecommitdiffstats
path: root/openpower/scripts
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-09-21 13:55:00 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-09-21 14:24:31 +1000
commit93c5a54ca13dbd64e0c3db88429c3b571afbd78b (patch)
treec8f14502524a538da8f948999e6758c4a29797fc /openpower/scripts
parent8cf51efe213bce8790e69961d334c304531f7385 (diff)
downloadtalos-op-build-93c5a54ca13dbd64e0c3db88429c3b571afbd78b.tar.gz
talos-op-build-93c5a54ca13dbd64e0c3db88429c3b571afbd78b.zip
release-notes: Update to account for single witherspoon platform
The release-notes script gets confused by the existence of both witherspoon_sequoia_defconfig and witherspoon_defconfig. In this scenario witherspoon_sequoia_defconfig only exists to placate the CI process, so treat it as if it does not exist. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'openpower/scripts')
-rwxr-xr-xopenpower/scripts/release-notes17
1 files changed, 17 insertions, 0 deletions
diff --git a/openpower/scripts/release-notes b/openpower/scripts/release-notes
index a0f322f8..33974d5b 100755
--- a/openpower/scripts/release-notes
+++ b/openpower/scripts/release-notes
@@ -74,6 +74,23 @@ s/_defconfig// foreach (@end_platforms);
my $witherspoon_insanity;
+# If both witherspoon and witherspoon-sequoia exist we've switched back
+# to a single witherspoon platform and the -sequoia platform is just to
+# keep Jenkins happy - ignore it.
+if ("witherspoon" ~~ @begin_platforms
+ && "witherspoon-sequoia" ~~ @begin_platforms) {
+ my $index = 0;
+ $index++ until @begin_platforms[$index] eq "witherspoon-sequoia";
+ splice(@begin_platforms, $index, 1);
+}
+
+if ("witherspoon" ~~ @end_platforms
+ && "witherspoon-sequoia" ~~ @end_platforms) {
+ my $index = 0;
+ $index++ until @end_platforms[$index] eq "witherspoon-sequoia";
+ splice(@end_platforms, $index, 1);
+}
+
if (($platform && $platform eq 'witherspoon')
&& -f "$end_worktree/openpower/configs/witherspoon-sequoia_defconfig") {
@begin_platforms = ('witherspoon');
OpenPOWER on IntegriCloud