diff --git a/.gitignore b/.gitignore index 34a968c1..8ece4a20 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ test_project /results.tap /report.tap + +/t.py diff --git a/pipenv/utils.py b/pipenv/utils.py index 29437868..fd760455 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -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 diff --git a/run-tests.bat b/run-tests.bat index 16d370d4..4ddcee2b 100644 --- a/run-tests.bat +++ b/run-tests.bat @@ -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