From 258584ff790312d2eab8fd30bc88c779c99a5ed1 Mon Sep 17 00:00:00 2001
From: Matthieu Napoli <matthieu@mnapoli.fr>
Date: Thu, 18 Dec 2014 12:22:12 +1300
Subject: [PATCH] Skip integration tests if they are not supported on this OS

---
 .../Integration/CronArchive/SharedSiteIdsTest.php        | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
index 6e3959ceda..8ad12f8b8b 100644
--- a/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
+++ b/tests/PHPUnit/Integration/CronArchive/SharedSiteIdsTest.php
@@ -26,11 +26,20 @@ class SharedSiteIdsTest extends IntegrationTestCase
     {
         parent::setUp();
 
+        if (! SharedSiteIds::isSupported()) {
+            $this->markTestSkipped('Not supported on this platform');
+            return;
+        }
+
         $this->sharedSiteIds = new SharedSiteIds(array(1,2,5,9));
     }
 
     public function tearDown()
     {
+        if (! SharedSiteIds::isSupported()) {
+            return;
+        }
+
         $siteIdsToCleanup = new SharedSiteIds(array());
         $siteIdsToCleanup->setSiteIdsToArchive(array());
 
-- 
GitLab