Bug 1321428 - Allow restricting reftests to nightly builds only. r=mattwoodrow draft
authorBotond Ballo <botond@mozilla.com>
Wed, 14 Dec 2016 18:06:42 -0500
changeset 542204 eedbefcca12df1855c726c75e603036a180b420e
parent 542203 ebc4cc22fc9cfccf6e1ba28e0249793d5b96cd59
child 542205 2b54ba1a0f8f7ad024beda72c6d1efffb7f87800
push id50961
push userbballo@mozilla.com
push dateFri, 24 Mar 2017 22:03:27 +0000
reviewersmattwoodrow
bugs1321428
milestone55.0a1
Bug 1321428 - Allow restricting reftests to nightly builds only. r=mattwoodrow MozReview-Commit-ID: 59yBmb9QQra
layout/tools/reftest/reftest.jsm
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -640,16 +640,23 @@ function BuildConditionSandbox(aURL) {
     sandbox.d3d9 =
       gWindowUtils.layerManagerType == "Direct3D 9";
     sandbox.layersOpenGL =
       gWindowUtils.layerManagerType == "OpenGL";
     sandbox.webrender =
       gWindowUtils.layerManagerType == "WebRender";
     sandbox.layersOMTC =
       gWindowUtils.layerManagerRemote == true;
+      
+    // This allows restricting certain reftests to nightly builds.
+#if NIGHTLY_BUILD
+    sandbox.isNightlyBuild = true;
+#else
+    sandbox.isNightlyBuild = false;
+#endif
 
     // Shortcuts for widget toolkits.
     sandbox.Android = xr.OS == "Android";
     sandbox.cocoaWidget = xr.widgetToolkit == "cocoa";
     sandbox.gtkWidget = xr.widgetToolkit == "gtk2"
                         || xr.widgetToolkit == "gtk3";
     sandbox.qtWidget = xr.widgetToolkit == "qt";
     sandbox.winWidget = xr.widgetToolkit == "windows";