Delete requires_signing files before test archival
authorwtgodbe <wigodbe@microsoft.com>
Wed, 1 Feb 2017 00:03:17 +0000 (16:03 -0800)
committerwtgodbe <wigodbe@microsoft.com>
Wed, 1 Feb 2017 00:03:17 +0000 (16:03 -0800)
tests/helixprep.proj

index 830f45e..ea71dba 100644 (file)
@@ -16,6 +16,7 @@
   <ItemGroup>
     <TestCmds Include="$(DiscoveryDirectory)\**\*.cmd" ></TestCmds>
     <XunitDlls Include="$(DiscoveryDirectory)\*\*.XUnitWrapper.dll" ></XunitDlls>
+    <RequiresSigningFilesToDelete Include="$(DiscoveryDirectory)\**\*.requires_signing" />
   </ItemGroup>
 
   <!-- Build the platform-specific wrapper to run an individual xunit wrapper -->
@@ -43,7 +44,7 @@
           DestinationFolder="%(XunitDlls.RootDir)%(XunitDlls.Directory)"
     />
     <Message Text="Deleting '.requires_signing' files to avoid file name lengths exceeding MAX_PATH" Importance="Low" />
-    <Delete Files="$(DiscoveryDirectory)\**\*.requires_signing" />
+    <Delete Files="@(RequiresSigningFilesToDelete)" />
     <MSBuild Projects="helixprep.proj"
              Properties="BuildPath=%(XunitDlls.RootDir)%(XunitDlls.Directory);ProjectName=%(XunitDlls.Filename);BuildArchiveDir=$(TestWorkingDir)archive\tests\"
              Targets="ArchiveBuild" />