Merge pull request #1566 from pypa/windows-ramdisk

Windows: ramdisk for tests
This commit is contained in:
2018-03-06 11:40:05 -05:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
+2
View File
@@ -26,3 +26,5 @@ test_project
/results.tap
/report.tap
/t.py
+1 -1
View File
@@ -1129,7 +1129,7 @@ class TemporaryDirectory(object):
if 'RAM_DISK' in os.environ:
import uuid
name = uuid.uuid4().hex
dir_name = os.path.sep.join([os.environ['RAM_DISK'], name])
dir_name = os.path.sep.join([os.environ['RAM_DISK'].strip(), name])
os.mkdir(dir_name)
self.name = dir_name
+2 -3
View File
@@ -1,8 +1,7 @@
imdisk -a -s 2104515b -m R: -f C:\my_disk.ima -p "/FS:NTFS /C /Y"
set RAM_DISK="R:\"
rem imdisk -a -s 964515b -m R: -p "/FS:NTFS /Y"
virtualenv R:\.venv
R:\.venv\Scripts\pip install -e . --upgrade --upgrade-strategy=only-if-needed
R:\.venv\Scripts\pipenv install --dev
SET RAM_DISK="R:\" && SET PYPI_VENDOR_DIR=".\tests\pypi\" && R:\.venv\Scripts\pipenv run pytest -n auto -v tests --tap-stream
SET RAM_DISK=R:&& SET PYPI_VENDOR_DIR=".\tests\pypi\" && R:\.venv\Scripts\pipenv run pytest -n auto -v tests --tap-stream > report.tap