Skip to content

Commit 0b4ee0b

Browse files
committed
Re-enable tests to test RAMDisk.
1 parent 8ad35ef commit 0b4ee0b

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.azure-pipelines/steps/run-tests-windows.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ steps:
4848
Get-IscsiConnection | Get-Disk | Initialize-Disk -PartitionStyle MBR
4949
Get-IscsiConnection | Get-Disk | New-Partition -UseMaximumSize -DriveLetter R
5050
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
5158
displayName: Test
5259

5360
- powershell: |
@@ -76,25 +83,20 @@ steps:
7683

7784
- script:
7885
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
8486
env:
85-
TEMP: "R:\\"
87+
TEMP: "R:\\Temp"
8688
displayName: Tox run unit tests
8789

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()
98100

99101
- ${{ if eq(parameters.runIntegrationTests, 'true') }}:
100102
- powershell: |
@@ -105,9 +107,7 @@ steps:
105107
106108
# Shorten paths to get under MAX_PATH or else integration tests will fail
107109
# https://bugs.python.org/issue18199
108-
subst T: $env:TEMP
109-
$env:TEMP = "T:\"
110-
$env:TMP = "T:\"
110+
$env:TEMP = "R:\Temp"
111111
112112
tox -e py -- -m integration -n 3 --duration=5 --junit-xml=junit/integration-test.xml
113113
displayName: Tox run integration tests

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ deps = -r{toxinidir}/tools/requirements/tests.txt
2020
commands_pre =
2121
python -c 'import shutil, sys; shutil.rmtree(sys.argv[1], ignore_errors=True)' {toxinidir}/tests/data/common_wheels
2222
{[helpers]pip} wheel -w {toxinidir}/tests/data/common_wheels -r {toxinidir}/tools/requirements/tests-common_wheels.txt
23-
commands = pytest --timeout 300 --suppress-no-test-exit-code [] -k test_build_env_allow_only_one_install tests/unit/test_build_env.py
23+
commands = pytest --timeout 300 []
2424
install_command = {[helpers]pip} install {opts} {packages}
2525
list_dependencies_command = {[helpers]pip} freeze --all
2626

0 commit comments

Comments
 (0)