Replace jenkins user to cerc for the env file so that it can find it on the machine

This commit is contained in:
Ruben Sanchez 2023-11-15 13:41:10 -05:00
parent df93a9774b
commit 5463325f67
3 changed files with 2 additions and 5 deletions

View File

@ -1,3 +0,0 @@
# Except this file
*
!.gitignore

View File

@ -1,4 +1,4 @@
""" """
CERC Persistence version number CERC Persistence version number
""" """
__version__ = '0.1.0.1' __version__ = '0.1.0.2'

View File

@ -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}'