From 5e7692c819c0568068a2485e27a7d3f4264f68ff Mon Sep 17 00:00:00 2001 From: Alex Burke Date: Tue, 15 Oct 2024 10:14:33 +0200 Subject: [PATCH] fixup --- mig/unittest/testcore.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mig/unittest/testcore.py b/mig/unittest/testcore.py index 8af3db615..8944fd45b 100644 --- a/mig/unittest/testcore.py +++ b/mig/unittest/testcore.py @@ -42,7 +42,6 @@ invisible_path, allow_script, brief_list -_LOCAL_MIG_BASE = '/usr/src/app' if PY2 else MIG_BASE # account for execution in container _TEST_CONF_FILE = os.environ['MIG_CONF'] _TEST_CONF_DIR = os.path.dirname(_TEST_CONF_FILE) _TEST_CONF_SYMLINK = os.path.join(MIG_BASE, "envhelp/output/testconfs") @@ -67,7 +66,7 @@ def _assert_local_config_global_values(config): for path in ('mig_path', 'certs_path', 'state_path'): path_value = config_global_values.get(path) - if not is_path_within(path_value, start=_LOCAL_MIG_BASE): + if not is_path_within(path_value, start=MIG_BASE): raise AssertionError('local config contains bad path: %s=%s' % (path, path_value)) return config_global_values