Skip to content

Commit 6027471

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

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

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

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ 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+
$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
5157
displayName: Test
5258

5359
- powershell: |
@@ -76,25 +82,20 @@ steps:
7682

7783
- script:
7884
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
8485
env:
8586
TEMP: "R:\\"
8687
displayName: Tox run unit tests
8788

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

99100
- ${{ if eq(parameters.runIntegrationTests, 'true') }}:
100101
- powershell: |
@@ -105,9 +106,7 @@ steps:
105106
106107
# Shorten paths to get under MAX_PATH or else integration tests will fail
107108
# https://bugs.python.org/issue18199
108-
subst T: $env:TEMP
109-
$env:TEMP = "T:\"
110-
$env:TMP = "T:\"
109+
$env:TEMP = "R:\"
111110
112111
tox -e py -- -m integration -n 3 --duration=5 --junit-xml=junit/integration-test.xml
113112
displayName: Tox run integration tests

tox.ini

Lines changed: 1 addition & 1 deletion
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)