• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

susam / todo / 6
100%

Build:
DEFAULT BRANCH: master
Ran 16 May 2016 03:18PM UTC
Jobs 1
Files 8
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6

push

travis-ci

susam
Fix: Remove/Move all tasks has no effect on the todo file

Bug: Trying to remove all tasks or move all tasks to the done file does
not affect the todo file at all.

    todo rm ".*"
    todo mv ".*"

Cause: While removing tasks the `grep -v -i -E` command is used
internally to filter out the selected tasks and write down the remaining
tasks to a temporary file. If this grep command exits with status code
0, then the todo file is replaced with the temporary file thus
completing the removal. However, when all tasks are to be removed,
`grep -v -i -E` products empty output (which is okay since all tasks are
to be removed) and exits with status code 1 (which is a problem because
this means we will not proceed with replacing the todo file with the
empty temporary file). Thus the todo file remains unaffected.

Fix: The `grep` command exits with a status code of 2 or greater for
error conditions. The status codes 0 and 1 merely mean that some lines
were selected or not selected, respectively. Therefore, if the status
code is less than 2, consider it to be a successful execution of `grep`
and replace the todo file with the temporary file.

408 of 408 relevant lines covered (100.0%)

14.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6.1 16 May 2016 03:18PM UTC 0
100.0
Travis Job 6.1
Source Files on build 6
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6
  • 459f1ad7 on github
  • Prev Build on master (#5)
  • Next Build on master (#7)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc