@@ -48,6 +48,13 @@ 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
+ mkdir R:\Temp
54
+ $acl = Get-Acl "R:\Temp"
55
+ $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
56
+ $acl.AddAccessRule($rule)
57
+ Set-Acl "R:\Temp" $acl
51
58
displayName : Test
52
59
53
60
- powershell : |
@@ -76,25 +83,20 @@ steps:
76
83
77
84
- script :
78
85
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
86
env :
85
- TEMP : " R:\\ "
87
+ TEMP : " R:\\ Temp "
86
88
displayName : Tox run unit tests
87
89
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()
90
+ # - script:
91
+ # tracerpt -l traces/wpr-result.etl -export traces/providers.man
92
+ # displayName: Generate trace provider manifest
93
+ #
94
+ # - task: PublishBuildArtifacts@1
95
+ # displayName: 'Publish trace results'
96
+ # inputs:
97
+ # pathtoPublish: traces
98
+ # artifactName: wpr-result-$(python.version)-$(python.architecture).etl
99
+ # condition: succeededOrFailed()
98
100
99
101
- ${{ if eq(parameters.runIntegrationTests, 'true') }} :
100
102
- powershell : |
@@ -105,9 +107,7 @@ steps:
105
107
106
108
# Shorten paths to get under MAX_PATH or else integration tests will fail
107
109
# https://bugs.python.org/issue18199
108
- subst T: $env:TEMP
109
- $env:TEMP = "T:\"
110
- $env:TMP = "T:\"
110
+ $env:TEMP = "R:\Temp"
111
111
112
112
tox -e py -- -m integration -n 3 --duration=5 --junit-xml=junit/integration-test.xml
113
113
displayName: Tox run integration tests
0 commit comments