plainbox crashes when job has unknown estimated duration

Bug #1445030 reported by Zygmunt Krynicki on 2015-04-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlainBox (Toolkit)
Zygmunt Krynicki

Bug Description

This seems to be caused by the recent patches that work with estimates.

(venv.fx)zyga@fx:~/checkbox$ plainbox run -i -i '[0-9]_screenshot_fullscreen_video.+'

Traceback (most recent call last):
  File "/home/zyga/checkbox/venv.fx/bin/plainbox", line 9, in <module>
    load_entry_point('plainbox==0.21.dev0', 'console_scripts', 'plainbox')()
  File "/home/zyga/checkbox/plainbox/plainbox/impl/", line 122, in main
    raise SystemExit(PlainBoxTool().main(argv))
  File "/home/zyga/checkbox/plainbox/plainbox/impl/", line 324, in main
    return self.dispatch_and_catch_exceptions(ns)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/", line 556, in dispatch_command
    return ns.command.invoked(ns)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/commands/", line 45, in invoked
    self.provider_loader, self.config_loader, ns, ns.color).run()
  File "/home/zyga/checkbox/plainbox/plainbox/impl/commands/", line 358, in run
    return self.do_normal_sequence()
  File "/home/zyga/checkbox/plainbox/plainbox/impl/commands/", line 400, in do_normal_sequence
  File "/home/zyga/checkbox/plainbox/plainbox/impl/commands/", line 724, in run_all_selected_jobs
    estimated_time += job.estimated_duration
TypeError: unsupported operand type(s) for +=: 'float' and 'NoneType'

Related branches

Zygmunt Krynicki (zyga) on 2015-04-16
Changed in plainbox:
importance: Undecided → Critical
milestone: none → 0.21
status: New → Confirmed
assignee: nobody → Maciej Kisielewski (kissiel)
assignee: Maciej Kisielewski (kissiel) → Zygmunt Krynicki (zyga)
Zygmunt Krynicki (zyga) on 2015-04-16
Changed in plainbox:
status: Confirmed → In Progress
Zygmunt Krynicki (zyga) on 2015-04-16
Changed in plainbox:
status: In Progress → Fix Committed
Changed in plainbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers