Skip to content
Snippets Groups Projects
Commit e6703579 authored by Patrycja Rosa's avatar Patrycja Rosa :cat: Committed by alice
Browse files

testing/luacov: upgrade to 0.15.0

parent 372ae9fe
No related branches found
No related tags found
1 merge request!47896testing/luacov: upgrade to 0.15.0
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# Maintainer: Hani Shawa <hani.shawa@ev-box.com> # Maintainer: Hani Shawa <hani.shawa@ev-box.com>
pkgname=luacov pkgname=luacov
_rockname=${pkgname#lua-} _rockname=${pkgname#lua-}
pkgver=0.14.0 pkgver=0.15.0
pkgrel=1 pkgrel=0
pkgdesc="simple coverage analysis tool for Lua scripts" pkgdesc="simple coverage analysis tool for Lua scripts"
url="https://github.com/keplerproject/luacov" url="https://github.com/keplerproject/luacov"
license="MIT" license="MIT"
...@@ -51,6 +51,6 @@ _subpackage() { ...@@ -51,6 +51,6 @@ _subpackage() {
} }
sha512sums=" sha512sums="
44ea158ce597f705d80b9768676e401804daea91b9c2afb146a8d25aae612e895e4f42a29c4b7b3438659c596fa500af5d23b66b7f3477459747ad06ca9b7ffa luacov-0.14.0.tar.gz cab02c540aad905db1fecd7f62545157c8ff9ea82f9ea602bff7b6093e3940a3a316e212a2efe30fa2439435dae6cd4005c2ee41de6b937d3e5f447bc2128a59 luacov-0.15.0.tar.gz
c6896588a1baece398ceccc346f3481151a59d63cff2d5a10be7f14318a65727ba52cb0b5e5f517466d9cd61835bd7c5af4f1c8da9aedb18008a6042f9acd593 reporter_fix.lua.patch 8694e1d5f72da049909d1a868c5b159721c81d20ce5cf9061069732cf6d52e24a9453ad172dec47baf605ed45a8501a7f5131d6bf7609d6b81d1e1eb451e5ce9 reporter_fix.lua.patch
" "
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua
index 0aadce1..d041d10 100644
--- a/src/luacov/reporter.lua --- a/src/luacov/reporter.lua
+++ b/src/luacov/reporter.lua +++ b/src/luacov/reporter.lua
@@ -25,7 +25,7 @@ @@ -33,7 +33,7 @@ local function dirtree(dir)
entry=directory.."/"..entry entry=directory..dir_sep..entry
local attr=lfs.attributes(entry) local attr=lfs.attributes(entry)
coroutine.yield(entry,attr) coroutine.yield(entry,attr)
- if attr.mode == "directory" then - if attr.mode == "directory" then
...@@ -9,12 +11,12 @@ ...@@ -9,12 +11,12 @@
yieldtree(entry) yieldtree(entry)
end end
end end
@@ -95,7 +95,7 @@ @@ -130,7 +130,7 @@ function ReporterBase:new(conf)
os.exit(1) local function add_empty_dir_coverage_data(directory_path)
end
for filename, attr in dirtree("./") do for filename, attr in dirtree(directory_path) do
- if attr.mode == "file" and fileMatches(filename, '.%.lua$') then - if attr.mode == "file" and fileMatches(filename, '.%.lua$') then
+ if attr and attr.mode == "file" and fileMatches(filename, '.%.lua$') then + if attr and attr.mode == "file" and fileMatches(filename, '.%.lua$') then
local file_stats = {} add_empty_file_coverage_data(filename)
file_stats[0] = 0 end
if luacov.file_included(filename) then end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment