Standardize auxiliary file location across os-charms

Change-Id: Ic06c4fcdd87d350a0e41cb9de62bd7887aae7168
Closes-Bug: #1843826
This commit is contained in:
Ryan Beisner 2019-09-12 15:27:36 -05:00
parent 660ce5b021
commit e69a562494
No known key found for this signature in database
GPG Key ID: 952BACDC1C1A05FB
5 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ def install_cron_script():
""" """
for fn in [SYNC_SCRIPT_NAME, SCRIPT_WRAPPER_NAME]: for fn in [SYNC_SCRIPT_NAME, SCRIPT_WRAPPER_NAME]:
shutil.copy(os.path.join("scripts", fn), USR_SHARE_DIR) shutil.copy(os.path.join("files", fn), USR_SHARE_DIR)
config = hookenv.config() config = hookenv.config()
installed_script = os.path.join(USR_SHARE_DIR, SCRIPT_WRAPPER_NAME) installed_script = os.path.join(USR_SHARE_DIR, SCRIPT_WRAPPER_NAME)
@ -201,7 +201,7 @@ def install_cron_script():
def install_cron_poll(): def install_cron_poll():
"Installs /etc/cron.d every-minute job in crontab for quick polling." "Installs /etc/cron.d every-minute job in crontab for quick polling."
poll_file_source = os.path.join('scripts', CRON_POLL_FILENAME) poll_file_source = os.path.join("files", CRON_POLL_FILENAME)
shutil.copy(poll_file_source, CRON_D) shutil.copy(poll_file_source, CRON_D)

View File

@ -44,7 +44,7 @@ deps = -r{toxinidir}/requirements.txt
basepython = python3 basepython = python3
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} hooks unit_tests tests actions lib scripts commands = flake8 {posargs} hooks unit_tests tests actions lib files
charm-proof charm-proof
[testenv:cover] [testenv:cover]