sleep_time_check script does not return the correct return code in some cases

Bug #1569191 reported by Pierre Equoy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Medium
Pierre Equoy

Bug Description

In some cases, the sleep_time_check script returns "0" (i.e. no problem) although there are errors, leading Checkbox to think the job using this script has passed when it has actually failed.

Steps to reproduce:

1. Create a empty file:
    touch /tmp/test.log
2. Call the script using this file:
    ./sleep_time_check /tmp/test.log
ERROR: One or more times was not reported correctly

$ echo $?
0

Related branches

Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
importance: Undecided → Medium
assignee: nobody → Pierre Equoy (pierre-equoy)
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: New → Confirmed
milestone: none → 0.28
Changed in plainbox-provider-checkbox:
status: Confirmed → In Progress
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
milestone: 0.28 → 0.27
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.