Check stating only when running on teamcity
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 4 Oct 2016 08:32:26 +0000 (11:32 +0300)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 4 Oct 2016 08:32:26 +0000 (11:32 +0300)
python/testSrc/com/jetbrains/env/PyEnvSufficiencyTest.java
python/testSrc/com/jetbrains/env/PyEnvTestCase.java

index 4229920e66e4478ce0146aa20a34440a1a2f3118..abc8309071cd254d1f034b66308a5089f7727c12 100644 (file)
@@ -23,9 +23,9 @@ public class PyEnvSufficiencyTest extends PyEnvTestCase {
   @Test
   @Staging
   public void testSufficiency() {
-    checkStaging();
-    
     if (UsefulTestCase.IS_UNDER_TEAMCITY && IS_ENV_CONFIGURATION) {
+      checkStaging();
+
       Set<String> tags = Sets.newHashSet();
       List<String> roots = getPythonRoots();
       if (roots.size() == 0) {
index 6266de9f0c47dee597190bd377e0d3543bfb1830..4f06d6353c2a07bd8e3297973283f365b20e5b03 100644 (file)
@@ -188,7 +188,9 @@ public abstract class PyEnvTestCase {
       return;
     }
 
-    checkStaging();
+    if (UsefulTestCase.IS_UNDER_TEAMCITY && IS_ENV_CONFIGURATION) {
+      checkStaging();
+    }
 
     List<String> roots = getPythonRoots();