Skip to content

Commit

Permalink
Fixes #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed Aug 11, 2014
1 parent 6309396 commit 3b2e59d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
## 0.2.1

- Avoids possible crash when parsing [unexpected logs](https://github.com/AshFurrow/second_curtain/issues/19). [@ashfurrow](http://github.com/AshFurrow)

## 0.2.0

- Using more intelligent parser to avoid uploading false matches. [@ashfurrow](http://github.com/AshFurrow)
Expand Down
5 changes: 4 additions & 1 deletion lib/second_curtain/parser.rb
Expand Up @@ -20,7 +20,10 @@ def parse_line(line)
test_case = XcodeTestCase.test_case_from_line(line)
latest_test_suite.test_cases.push test_case unless test_case == nil
elsif line.include?("' failed (")
latest_test_suite.latest_test_case.latest_command.fails = true
command = latest_test_suite.latest_test_case.latest_command
if command != nil
command.fails = true
end
end
end

Expand Down

0 comments on commit 3b2e59d

Please sign in to comment.