~vila/uci-engine/unique-charm-tests

« back to all changes in this revision

Viewing changes to testing/run_tests.py

  • Committer: Ubuntu CI Bot
  • Author(s): Vincent Ladeuil
  • Date: 2014-09-26 07:16:18 UTC
  • mfrom: (804.2.1 charm-tests-prefix)
  • Revision ID: ubuntu_ci_bot-20140926071618-gc6pa1p5wowlonlq
[r=PS Jenkins bot, Evan Dandrea, Joe Talbott] Fix charm test names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
    for c in charms:
351
351
        with SysPath([c, os.path.join(c, 'hooks')]):
352
352
            sub_loader = loader.SubLoader(root=c)
 
353
            charm_suite = loader.suiteClass()
353
354
            # Load only python tests from 'unit_tests' (that's specific
354
355
            # for uci-engine charms).
355
 
            suite.addTests(sub_loader.loadTestsFromTree('unit_tests'))
 
356
            charm_suite.addTests(sub_loader.loadTestsFromTree('unit_tests'))
356
357
            # Change the test ids to embed the leading path for easier matching
357
 
            prefix_test_ids(suite, c)
 
358
            prefix_test_ids(charm_suite, c)
 
359
        suite.addTests(charm_suite)
358
360
    suite = filters.include_regexps(include_regexps, suite)
359
361
    suite = filters.exclude_regexps(exclude_regexps, suite)
360
362
    return suite