#8312 Fix api.env.in_tree detection logic
Opened by cheimes. Modified

Issue

The logic to detect in-tree builds is broken and ipatests/conftest.py has hard-coded in_tree=True. The API should auto-detect in-tree builds and testing based on the presence of files that are only available in source distributions and checkouts.

A good marker would be ipasetup.py.in. The file name is pretty unique and the .in files are never installed in Python's site-package directory.


Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/4656
- Issue tagged with: bug

Fix is blocked until https://pagure.io/freeipa/issue/8317 is resolved.

master:

  • 13c3997baa97b7974870cb2353caa4ced8f134d1 Fix detection logic for api.env.in_tree
  • 0fa31ef123a544378f04a2177524c9f72181a812 Hard-code in_tree=True for tests

ipa-4-8:

  • 6cd2d44707c69b6c83c0eaae3a94d6f64c6c1622 Fix detection logic for api.env.in_tree
  • 834b04b91dff670d3f0feb1b403705074a8f3d5b Hard-code in_tree=True for tests

Related: https://pagure.io/freeipa/issue/6658

Metadata