Skip to content

Commit

Permalink
Add activeissues.targets and disable test
Browse files Browse the repository at this point in the history
activeissues.targets is meant to only disable CI-blocking tests. This PR also
skips the DictionaryExpansion tests on Mono Android to address dotnet#61322
  • Loading branch information
agocke committed Nov 10, 2021
1 parent 088abc7 commit 5de3e0e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tests/activeissues.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<!-- Tracks ci-blocking issues -->
<Project DefaultTargets = "GetListOfTestCmds" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ExcludeList Include="$(XunitTestBinBase)/Loader/classloader/DictionaryExpansion/*"
Condition="'$(RuntimeFlavor)' == 'mono' and '$(TargetOs)' == 'Android'">
<Issue>https://github.com/dotnet/runtime/issues/61322</Issue>
</ExcludeList>
</Project>
2 changes: 2 additions & 0 deletions src/tests/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ set "__RootBinDir=%__RepoRootDir%\artifacts"
set "__LogsDir=%__RootBinDir%\log"
set "__MsbuildDebugLogsDir=%__LogsDir%\MsbuildDebugLogs"

set __ActiveIssuesList=%__RepoRootDir%\src\tests\activeissues.targets
:: Default __Exclude to issues.targets
set __Exclude=%__RepoRootDir%\src\tests\issues.targets

Expand Down Expand Up @@ -119,6 +120,7 @@ if /i "%1" == "crossgen2" (set __DoCrossgen2=1&set __TestBuildMode=c
if /i "%1" == "composite" (set __CompositeBuildMode=1&set __DoCrossgen2=1&set __TestBuildMode=crossgen2&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "pdb" (set __CreatePdb=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "perfmap" (set __CreatePerfmap=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "ActiveIssuesList" (set __ActiveIssuesList=%2&set processedArgs=!processedArgs! %1 %2&shift&shift&goto Arg_Loop)
if /i "%1" == "Exclude" (set __Exclude=%2&set processedArgs=!processedArgs! %1 %2&shift&shift&goto Arg_Loop)
if /i "%1" == "-priority" (set __Priority=%2&shift&set processedArgs=!processedArgs! %1=%2&shift&goto Arg_Loop)
if /i "%1" == "allTargets" (set "__BuildNeedTargetArg=/p:CLRTestBuildAllTargets=%1"&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
Expand Down
1 change: 1 addition & 0 deletions src/tests/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
</ItemGroup>
</Target>

<Import Project="$(__ActiveIssuesList)" Condition="'$(__ActiveIssuesList)' != '' AND '$(XunitTestBinBase)' != ''" />
<Import Project="$(__Exclude)" Condition="'$(__Exclude)' != '' AND '$(XunitTestBinBase)' != ''" />
<PropertyGroup>
<HaveExcludes>False</HaveExcludes>
Expand Down
2 changes: 2 additions & 0 deletions src/tests/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build_Tests()

__ProjectFilesDir="$__TestDir"
__TestBinDir="$__TestWorkingDir"
__ActiveIssuesList="$__RepoRootDir/src/tests/activeissues.targets"
__Exclude="$__RepoRootDir/src/tests/issues.targets"

if [[ -f "${__TestWorkingDir}/build_info.json" ]]; then
Expand Down Expand Up @@ -110,6 +111,7 @@ build_Tests()
export __MonoBinDir
export __MsgPrefix
export __ErrMsgPrefix
export __ActiveIssuesList
export __Exclude

# Generate build command
Expand Down

0 comments on commit 5de3e0e

Please sign in to comment.