Skip to content

Commit

Permalink
Properly support E2E testing for Hatch envs (#12362)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Jun 13, 2022
1 parent 8d850df commit 4d92271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog_checks_dev/datadog_checks/dev/plugin/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def run_check(config=None, **kwargs):
root = new_root

python_path = os.environ[E2E_PARENT_PYTHON]
env = os.environ['TOX_ENV_NAME']
env = os.environ.get('TOX_ENV_NAME') or os.environ['HATCH_ENV_ACTIVE']

check_command = [python_path, '-m', 'datadog_checks.dev', 'env', 'check', check, env, '--json']

Expand Down

0 comments on commit 4d92271

Please sign in to comment.