You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2012/01/17 00:58:08 UTC

svn commit: r1232248 - in /incubator/npanday/npanday-its/trunk/src/test/java/npanday/its: AbstractNPandayIntegrationTestCase.java NPANDAY_480_CloudServiceWithMultipleRoles.java

Author: brett
Date: Tue Jan 17 00:58:07 2012
New Revision: 1232248

URL: http://svn.apache.org/viewvc?rev=1232248&view=rev
Log:
disable IT when it won't be able to run

Modified:
    incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
    incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_480_CloudServiceWithMultipleRoles.java

Modified: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java?rev=1232248&r1=1232247&r2=1232248&view=diff
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java (original)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java Tue Jan 17 00:58:07 2012
@@ -655,4 +655,15 @@ public abstract class AbstractNPandayInt
             skip = true;
         }
     }
+
+    protected void skipIfMissingMSBuildTask( String path, String message )
+    {
+        File f = new File( System.getenv( "PROGRAMFILES" ), "MSBuild" );
+        f = new File( f, path );
+        if ( !f.exists() )
+        {
+            skipReason = message;
+            skip = true;
+        }
+    }
 }

Modified: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_480_CloudServiceWithMultipleRoles.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_480_CloudServiceWithMultipleRoles.java?rev=1232248&r1=1232247&r2=1232248&view=diff
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_480_CloudServiceWithMultipleRoles.java (original)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_480_CloudServiceWithMultipleRoles.java Tue Jan 17 00:58:07 2012
@@ -29,6 +29,10 @@ public class NPANDAY_480_CloudServiceWit
         super( "[1.5.0-incubating,)", "[v4.0.30319,)" );
 
         skipIfMissingProgramFilesDirectory( "Windows Azure SDK", "Azure SDK is not installed" );
+
+        // TODO: when XDT doesn't require VS 2010, then this can be removed
+        skipIfMissingMSBuildTask( "Microsoft/VisualStudio/v10.0/Web/Microsoft.Web.Publishing.Tasks.dll",
+                                  "Visual Studio 2010 with web platform is not installed" );
     }
 
     public void test()