refactor: rename _temp to .cache

This commit is contained in:
Richard Pappalardo 2016-06-16 10:23:25 +01:00
Родитель 925a02deea
Коммит 406094eac6
6 изменённых файлов: 11 добавлений и 10 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -15,3 +15,4 @@ pip-selfcheck.json
# pyenv
.python-version
.cache/

Просмотреть файл

@ -14,7 +14,7 @@ CHANNELS = ['release',
DEFAULT_CHANNEL = 'nightly'
HERE = os.path.dirname(os.path.realpath(__file__))
DIR_TEMP = '_temp'
DIR_TEMP = '.cache'
DIR_TEMP_BROWSERS = os.path.join(DIR_TEMP, 'browsers')
DIR_CONFIGS = '{0}/configs'.format(HERE)
DIR_TEMP_PROFILES = os.path.join(DIR_TEMP, 'profiles')

Просмотреть файл

@ -59,7 +59,7 @@ def arg_parser():
parser.add_argument(
'--clean-profiles',
action='store_true',
help="Delete all the fftool.* profile directories in the _temp/profiles\
help="Delete all the fftool.* profile directories in the .cache/profiles\
directory"
)

Просмотреть файл

@ -13,23 +13,23 @@ PLATFORM =
# download configs
DOWNLOAD_FILENAME = firefox-nightly.tar.bz2
# install configs
PATH_FIREFOX_APP = _temp/browsers/firefox-nightly
PATH_FIREFOX_APP = .cache/browsers/firefox-nightly
[aurora]
# download configs
DOWNLOAD_FILENAME = firefox-dev-edition.tar.bz2
# install configs
PATH_FIREFOX_APP = _temp/browsers/firefox-developer-edition
PATH_FIREFOX_APP = .cache/browsers/firefox-developer-edition
[beta]
# download configs
DOWNLOAD_FILENAME = firefox-beta.tar.bz2
# install configs
PATH_FIREFOX_APP = _temp/browsers/firefox-beta
PATH_FIREFOX_APP = .cache/browsers/firefox-beta
[release]
# download configs
DOWNLOAD_FILENAME = firefox-release.tar.bz2
# install configs
PATH_FIREFOX_APP = _temp/browsers/firefox-release
PATH_FIREFOX_APP = .cache/browsers/firefox-release

Просмотреть файл

@ -1,5 +1,5 @@
[DEFAULT]
PATH_FIREFOX_APP = _temp/browsers/%(APP_DEST_FILENAME)s
PATH_FIREFOX_APP = .cache/browsers/%(APP_DEST_FILENAME)s
PATH_FIREFOX_BIN_ENV = %(PATH_FIREFOX_APP)s/Contents/MacOS/firefox
PATH_FIREFOX_PROFILES_ENV = $HOME/Library/Application Support/Firefox/
PATH_SIKULIX_BIN_ENV = /Applications/Sikuli/runsikulix
@ -10,7 +10,7 @@ PLATFORM=
DOWNLOAD_FILENAME = FirefoxNightly.dmg
# This is the name of the *.app file within the DMG.
APP_SRC_FILENAME = FirefoxNightly.app
# This is the name of the *.app file we will save to _temp/browsers/
# This is the name of the *.app file we will save to .cache/browsers/
APP_DEST_FILENAME = FirefoxNightly.app
[aurora]

Просмотреть файл

@ -5,7 +5,7 @@ preferences files specified by --prefs-dirs, like so:
- ./<application>/<test_type>/prefs.ini
The profile is then created using the specified name and
saved to the ../_temp/ directory.
saved to the ../.cache/ directory.
"""
import os
@ -96,7 +96,7 @@ def clean_profiles():
def create_mozprofile(profile_dir, prefs_dirs=None, env=None):
# Ensure base `_temp/profiles/` dir exists before trying to
# Ensure base `.cache/profiles/` dir exists before trying to
# create a nested directory.
if not os.path.exists(BASE_PROFILE_DIR):
os.mkdir(BASE_PROFILE_DIR)