diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-06-29 16:31:58 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-06-29 16:31:58 +0300 |
commit | d043da47e5d98e99e515edcdab951abe40be4681 (patch) | |
tree | b26b482117a4b53d0a8a7b2c46759757cbf83cb2 /src/luacov/defaults.lua | |
parent | a40cdcec612773a8a07afedd950e74eeb0eb9726 (diff) | |
download | luacov-d043da47e5d98e99e515edcdab951abe40be4681.tar.gz |
Convert statsfile and reportfile paths to absolute on config load
If a program using LuaCov changes its directory, particularly if it uses
`luacov.tick`, stats may be partially saved relatively to one of
intermediate current directories instead of the starting one.
The fix is to convert paths in config to absolute on load.
`pwd` (`cd` on Windows) is used to get current directory, so, no
dependency on lfs is introduced.
Older versions of LuaCov opened statsfile on config load, which avoids this
problem.
Diffstat (limited to 'src/luacov/defaults.lua')
0 files changed, 0 insertions, 0 deletions