BF: use tests.utils.CONFIG_DIR instead of hardcoded "config" in fail2banclienttestcase

Since otherwise cannot provide custom path to the config via env var
and thus cannot test in a build directory which is out of source
pull/2025/head
Yaroslav Halchenko 7 years ago committed by sebres
parent 3ac6166b48
commit 2f0bc491e2

@ -44,13 +44,13 @@ from ..server import server
from ..server.mytime import MyTime from ..server.mytime import MyTime
from ..server.utils import Utils from ..server.utils import Utils
from .utils import LogCaptureTestCase, logSys as DefLogSys, with_tmpdir, shutil, logging from .utils import LogCaptureTestCase, logSys as DefLogSys, with_tmpdir, shutil, logging
from .utils import CONFIG_DIR as STOCK_CONF_DIR
from ..helpers import getLogger from ..helpers import getLogger
# Gets the instance of the logger. # Gets the instance of the logger.
logSys = getLogger(__name__) logSys = getLogger(__name__)
STOCK_CONF_DIR = "config"
STOCK = exists(pjoin(STOCK_CONF_DIR, 'fail2ban.conf')) STOCK = exists(pjoin(STOCK_CONF_DIR, 'fail2ban.conf'))
CLIENT = "fail2ban-client" CLIENT = "fail2ban-client"

Loading…
Cancel
Save