1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

disable debug in tests with env var

This commit is contained in:
deadc0de6
2019-03-13 09:00:43 +01:00
parent bf23f6b341
commit b19f115351
27 changed files with 43 additions and 35 deletions

View File

@@ -10,7 +10,7 @@ import string
import random
import tempfile
from dotdrop.options import Options
from dotdrop.options import Options, ENV_NODEBUG
from dotdrop.linktypes import LinkTypes
from dotdrop.utils import strip_home
@@ -128,6 +128,8 @@ def load_options(confpath, profile):
o.link = LinkTypes.NOLINK.value
o.install_showdiff = True
o.debug = True
if ENV_NODEBUG in os.environ:
o.debug = False
o.compare_dopts = ''
o.variables = {}
return o