Skip to content

Commit

Permalink
added Linux integration specs (#316)
Browse files Browse the repository at this point in the history
* added Linux integration specs

* fix indentation

* close #312 - don't bump processor priority on Linux
  • Loading branch information
Aaronontheweb committed Feb 24, 2020
1 parent 6808e68 commit 347f0ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion build-system/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ jobs:
scriptFileName: build.cmd
scriptArgs: NBench
outputDirectory: 'PerfResults'
artifactName: 'integration_tests-$(Build.BuildId)'
artifactName: 'integration_tests_windows-$(Build.BuildId)'
- template: azure-pipeline.template.yaml
parameters:
name: 'linux_integration'
displayName: 'Integration Tests (Linux)'
vmImage: 'ubuntu-16.04'
scriptFileName: build.sh
scriptArgs: NBench
outputDirectory: 'PerfResults'
artifactName: 'integration_tests_linux-$(Build.BuildId)'
- template: azure-pipeline.template.yaml
parameters:
name: 'nuget_pack'
Expand Down
3 changes: 2 additions & 1 deletion src/NBench/Sdk/TestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
using System.Threading;
using IBenchmarkOutput = NBench.Reporting.IBenchmarkOutput;

Expand Down Expand Up @@ -81,7 +82,7 @@ public static void SetProcessPriority(bool concurrent)
/*
* Set priority
*/
if (!IsMono)
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !IsMono)
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;
if (!concurrent)
{
Expand Down

0 comments on commit 347f0ec

Please sign in to comment.