Skip to content

Conversation

@amousset
Copy link

@amousset amousset commented Apr 2, 2025

The preview function does not work as expected when the AUG_ENABLE_SPAN flag is passed. This path computed by tree_source seems incorrect in this case:

  • When the spans are not enabled, the tree_source call in the test returns /files/etc/hosts.
  • When the spans are enabled, the tree_source call in the test returns /home/.../augeas/tests/root/etc/hosts which then makes the preview fail.

The added tests fails, and is fixed by removing the special case when span are defined in tree_source, but I don't grasp the possible implications of this change.

@amousset amousset marked this pull request as ready for review April 2, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant