Skip to content

Commit

Permalink
Only warn on conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Aug 31, 2018
1 parent c41ff41 commit 2e31083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion globalvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class GlobalVars:
log('debug', "Configuration loaded from \"config\"")
else:
config.read('config.ci')
if "pytest" in sys.modules:
if "pytest" in sys.modules and os.path.isfile('config'): # Another config found while running in pytest
log('debug', "Running in pytest, force load config from \"config.ci\"")
else:
log('debug', "Configuration loaded from \"config.ci\"")
Expand Down

0 comments on commit 2e31083

Please sign in to comment.