summaryrefslogtreecommitdiff
path: root/src/luacov/defaults.lua
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-06-29 16:31:58 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-06-29 16:31:58 +0300
commitd043da47e5d98e99e515edcdab951abe40be4681 (patch)
treeb26b482117a4b53d0a8a7b2c46759757cbf83cb2 /src/luacov/defaults.lua
parenta40cdcec612773a8a07afedd950e74eeb0eb9726 (diff)
downloadluacov-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