timeout and sleep should use marked syntax for time

Bug #304735 reported by e.mortoray
2
Affects Status Importance Assigned to Milestone
TestPlan
Fix Released
Medium
Unassigned

Bug Description

The use of a millisecond value for sleep and timeout isn't clear, and errorprone when using many minute durations.

This should use a syntax akin to durations, though the duration syntax (PT10m50s) seems a bit bulky for these operations (especially since only lower values are expected. Consider instead just using a simple marker:
 ms : milliseconds
 s : seconds
 m : minutes

Such as
  sleep 5m

Also allow decimals:
  sleep 2.5m

Revision history for this message
e.mortoray (e-mortoray) wrote :

Partially backwards incompatible. Emit warning when no unit is used and default o ms.

Changed in testplan:
milestone: none → 0.9-candidate
importance: Undecided → Medium
e.mortoray (e-mortoray)
Changed in testplan:
milestone: 0.9-candidate → 1.0-candidate
Revision history for this message
e.mortoray (e-mortoray) wrote :

checked in.
I will write a page explaining the timeout/duration system. I converted every possible place wtih exception of the Java internal definitions.

Revision history for this message
e.mortoray (e-mortoray) wrote :
Changed in testplan:
status: New → Fix Committed
edA-qa (eda-qa)
Changed in testplan:
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.