Skip to content

Commit

Permalink
Only run files that start with test, not just contain test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Jun 20, 2012
1 parent 5a552fb commit 43e6d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/runner.lua
Expand Up @@ -70,7 +70,7 @@ local function run(callback)
test_files = {}

for i, v in ipairs(files) do
local _, _, ext = string.find(v, 'test-.*%.(.*)')
local _, _, ext = string.find(v, '^test-.*%.(.*)')
if ext == 'lua' then
table.insert(test_files, v)
end
Expand Down

0 comments on commit 43e6d4d

Please sign in to comment.