@@ -48,6 +48,12 @@ steps:
48
48
Get-IscsiConnection | Get-Disk | Initialize-Disk -PartitionStyle MBR
49
49
Get-IscsiConnection | Get-Disk | New-Partition -UseMaximumSize -DriveLetter R
50
50
Format-Volume -DriveLetter R -NewFileSystemLabel Temp -FileSystem NTFS
51
+
52
+ echo "Adding permissions"
53
+ $acl = Get-Acl "R:\"
54
+ $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
55
+ $acl.AddAccessRule($rule)
56
+ Set-Acl "R:\" $acl
51
57
displayName : Test
52
58
53
59
- powershell : |
@@ -76,25 +82,20 @@ steps:
76
82
77
83
- script :
78
84
tox -e py -- -m unit --junit-xml=junit/unit-test.xml
79
- --use-wpr
80
- --wpr-path="C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\wpr.exe"
81
- --wpr-profile=GeneralProfile.verbose
82
- --wpr-profile=CPU.verbose
83
- --wpr-output=traces/wpr-result.etl
84
85
env :
85
86
TEMP : " R:\\ "
86
87
displayName : Tox run unit tests
87
88
88
- - script :
89
- tracerpt -l traces/wpr-result.etl -export traces/providers.man
90
- displayName : Generate trace provider manifest
91
-
92
- - task : PublishBuildArtifacts@1
93
- displayName : ' Publish trace results'
94
- inputs :
95
- pathtoPublish : traces
96
- artifactName : wpr-result-$(python.version)-$(python.architecture).etl
97
- condition : succeededOrFailed()
89
+ # - script:
90
+ # tracerpt -l traces/wpr-result.etl -export traces/providers.man
91
+ # displayName: Generate trace provider manifest
92
+ #
93
+ # - task: PublishBuildArtifacts@1
94
+ # displayName: 'Publish trace results'
95
+ # inputs:
96
+ # pathtoPublish: traces
97
+ # artifactName: wpr-result-$(python.version)-$(python.architecture).etl
98
+ # condition: succeededOrFailed()
98
99
99
100
- ${{ if eq(parameters.runIntegrationTests, 'true') }} :
100
101
- powershell : |
@@ -105,9 +106,7 @@ steps:
105
106
106
107
# Shorten paths to get under MAX_PATH or else integration tests will fail
107
108
# https://bugs.python.org/issue18199
108
- subst T: $env:TEMP
109
- $env:TEMP = "T:\"
110
- $env:TMP = "T:\"
109
+ $env:TEMP = "R:\"
111
110
112
111
tox -e py -- -m integration -n 3 --duration=5 --junit-xml=junit/integration-test.xml
113
112
displayName: Tox run integration tests
0 commit comments