plainbox crashes if duplicate test case names are present in the jobs files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Medium
|
Zygmunt Krynicki |
Bug Description
Checkbox Build: Installed: 0.15.5+
Plainbox Build: Installed: 0.2+bzr1993+
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Summary:
In the output below, I am attempting to run plainbox against the cpu testcase "cpu/scaling_test" which is located in /usr/share/
In most cases, plainbox will run against any of the test cases by default in /usr/share/
I spoke with Zyga who mentioned there should be code in plainbox to identify duplicate test cases and handle them properly. Filing a bug as requested by Zyga.
sfeole@
=======
Traceback (most recent call last):
File "/usr/lib/
self._job_list, self._desired_
File "/usr/lib/
return cls(job_
File "/usr/lib/
self._job_map = self._get_
File "/usr/lib/
raise DependencyDupli
plainbox.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
return impl(*args, **kwargs)
File "/usr/lib/
retval = box.main(argv)
File "/usr/lib/
return ns.command.
File "/usr/lib/
return self._run_jobs(ns, job_list, exporter)
File "/usr/lib/
self.
File "/usr/lib/
problem_list = session.
File "/usr/lib/
self.
ValueError: list.remove(x): x not in list
-------
To Reproduce:
1: Install Checkbox & Plainbox
2: Download the test.txt job file from this bug and place in "/usr/share/
3: Run plainbox with: plainbox run -i 'cpu/scaling_test'
4: Observe Error
Related branches
- Daniel Manrique (community): Approve
-
Diff: 201 lines (+96/-6)5 files modifiedplainbox/plainbox/impl/commands/run.py (+13/-1)
plainbox/plainbox/impl/depmgr.py (+9/-2)
plainbox/plainbox/impl/session.py (+40/-2)
plainbox/plainbox/impl/test_depmgr.py (+10/-0)
plainbox/plainbox/impl/test_session.py (+24/-1)
Marking confirmed since Zyga was able to reproduce with me on IRC