Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
albu-diku committed Oct 15, 2024
1 parent 3ef84ad commit 5e7692c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mig/unittest/testcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit 5e7692c

Please sign in to comment.