[augeas-devel] [Augeas] #244: test save fail
Augeas
trac at fedorahosted.org
Mon Feb 6 23:53:16 UTC 2012
#244: test save fail
-------------------------+---------------------
Reporter: fgiraldeau | Owner: raphink
Type: defect | Status: new
Priority: blocker | Milestone: next
Component: Augeas | Version: devel
Resolution: | Keywords:
Blocked By: | Blocking:
-------------------------+---------------------
Comment (by lutter):
I traced through the code a bit, and the reason for the test failure is
that after the changes in commit b69e0500 the following test no longer
works
{{{
test Yum.lns get "\n" = ?
}}}
Before Augeas does a put, it will parse the existing file (text) again;
for a file that does not exist yet (like in testSaveNewFile), Augeas will
parse the text "\n".
The fix for this is to make the above test work in test_yum.aug. I am
thinking of a way to do this for all toplevel lenses (the ones marked for
autoload in a module)
I also committed ab803217 - hopefully this will make this sort of error
clearer
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/244#comment:2>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list