~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to buildout-templates/bin/retest.in

  • Committer: Curtis Hovey
  • Date: 2011-08-21 14:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13745.
  • Revision ID: curtis.hovey@canonical.com-20110821142106-x93hajd6iguma8gx
Update test that was enforcing bad grammar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import re
30
30
import sys
31
31
from itertools import takewhile
 
32
from pprint import pprint
32
33
 
33
34
${python-relative-path-setup}
34
35
 
49
50
    match = STORY_RE.match(test)
50
51
    if match:
51
52
        return match.group(1)
52
 
    else:
53
 
        return test
54
53
 
55
54
 
56
55
def gen_test_lines(lines):
81
80
def run_tests(tests):
82
81
    """Given a set of tests, run them as one group."""
83
82
    print "Running tests:"
84
 
    for test in tests:
85
 
        print "  %s" % test
86
 
    args = ['-vvc'] if sys.stdout.isatty() else ['-vv']
 
83
    pprint(sorted(tests))
 
84
    args = ['-vv']
87
85
    for test in tests:
88
86
        args.append('-t')
89
 
        args.append(re.escape(test))
 
87
        args.append(test)
90
88
    os.execl(TEST, TEST, *args)
91
89
 
92
90