~ubuntu-branches/debian/stretch/cmdtest/stretch

« back to all changes in this revision

Viewing changes to cmdtest

  • Committer: Package Import Robot
  • Author(s): Lars Wirzenius
  • Date: 2014-03-15 10:22:18 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20140315102218-q2o7t7ox7vawdjgp
Tags: 0.11-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        for test in self.settings['test']:
121
121
            matches = glob.glob(os.path.join(dirname, test + '.*'))
122
122
            filenames += [os.path.basename(x) for x in matches]
 
123
 
 
124
        basenames = ['setup_once', 'setup', 'teardown', 'teardown_once']
 
125
        for basename in basenames:
 
126
            filename = os.path.join(dirname, basename)
 
127
            if os.path.exists(filename):
 
128
                filenames.append(basename)
 
129
 
123
130
        return filenames
124
131
 
125
132
    def setup_tempdir(self):