Replace jenkins user to cerc for the env file so that it can find it on the machine
This commit is contained in:
parent
df93a9774b
commit
5463325f67
3
cerc_persistence.egg-info/.gitignore
vendored
3
cerc_persistence.egg-info/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
||||||
# Except this file
|
|
||||||
*
|
|
||||||
!.gitignore
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""
|
"""
|
||||||
CERC Persistence version number
|
CERC Persistence version number
|
||||||
"""
|
"""
|
||||||
__version__ = '0.1.0.1'
|
__version__ = '0.1.0.2'
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Control:
|
||||||
"""
|
"""
|
||||||
self._skip_test = False
|
self._skip_test = False
|
||||||
# Create test database
|
# Create test database
|
||||||
dotenv_path = Path("{}/.local/etc/hub/.env".format(os.path.expanduser('~'))).resolve()
|
dotenv_path = Path("{}/.local/etc/hub/.env".format(os.path.expanduser('~').replace('jenkins', 'cerc'))).resolve()
|
||||||
if not dotenv_path.exists():
|
if not dotenv_path.exists():
|
||||||
self._skip_test = True
|
self._skip_test = True
|
||||||
self._skip_reason = f'.env file missing at {dotenv_path}'
|
self._skip_reason = f'.env file missing at {dotenv_path}'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user