[MIR] testrepository

Bug #1096914 reported by Chuck Short
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testrepository (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Availability: Currently in universe
Rationale: Dependency for openstack projects.
Security: No security history.
Quality Assurance: Package works out of the box with no prompting. There is no major bugs in Ubuntu and the is no major bugs in Debian.
Standards Compliance: FHS and Debian Policy compliant.
Maintenance: Simple python package that the Ubuntu Server Team will take care of.
Dependencies: All are in main except python-testscenarios

Chuck Short (zulcss)
Changed in testrepository (Ubuntu):
importance: Undecided → High
Revision history for this message
Michael Terry (mterry) wrote :

This seems to have a test suite that isn't being used.

Changed in testrepository (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Terry (mterry) wrote :

I see this when building, and it doesn't stop the build. Seems wrong?

./testr run --parallel
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/dist-packages/subunit/run.py", line 75, in <module>
    stdout=sys.stdout)
  File "/usr/lib/python2.7/dist-packages/testtools/run.py", line 164, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/dist-packages/testtools/run.py", line 241, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/dist-packages/testtools/run.py", line 250, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 113, in loadTestsFromName
    test = obj()
  File "testrepository/tests/__init__.py", line 88, in test_suite
    result.addTests(generate_scenarios(pkg.test_suite()))
  File "testrepository/tests/commands/__init__.py", line 36, in test_suite
    return loader.loadTestsFromNames(module_names)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_slowest'
running=${PYTHON:-python} -m subunit.run --list testrepository.tests.test_suite
PASSED (id=0)

Revision history for this message
Michael Terry (mterry) wrote :

Approved for now, with a that failing test disabled. Filed bug 1098605 about fixing that test.

Changed in testrepository (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 1096914] Re: [MIR] testrepository

It should indeed stop the build, suggests that a different testr was
picked up (modern testr's definitely check the exit status of the
subunit generators).

Revision history for this message
Dave Walker (davewalker) wrote :

Override component to main
testrepository 0.0.11-0ubuntu6 in raring: universe/python -> main
python-testrepository 0.0.11-0ubuntu6 in raring amd64: universe/python/optional -> main
python-testrepository 0.0.11-0ubuntu6 in raring armhf: universe/python/optional -> main
python-testrepository 0.0.11-0ubuntu6 in raring i386: universe/python/optional -> main
python-testrepository 0.0.11-0ubuntu6 in raring powerpc: universe/python/optional -> main
testrepository 0.0.11-0ubuntu6 in raring amd64: universe/python/optional -> main
testrepository 0.0.11-0ubuntu6 in raring armhf: universe/python/optional -> main
testrepository 0.0.11-0ubuntu6 in raring i386: universe/python/optional -> main
testrepository 0.0.11-0ubuntu6 in raring powerpc: universe/python/optional -> main
9 publications overridden.

Changed in testrepository (Ubuntu):
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.