summaryrefslogtreecommitdiff
path: root/testit
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-04-25 05:59:02 +1200
committerLars Wirzenius <liw@liw.fi>2010-04-25 05:59:02 +1200
commitf71f1102eea9b095c001d8ea918660c9756873a5 (patch)
treeba261366ad69c221a049465c5da73868d850223c /testit
parent1448638a75aac754e71356094166739eac48b5c2 (diff)
downloaddupfiles-f71f1102eea9b095c001d8ea918660c9756873a5.tar.gz
Replace hardcoded list of tests with some introspection.
Diffstat (limited to 'testit')
-rwxr-xr-xtestit10
1 files changed, 5 insertions, 5 deletions
diff --git a/testit b/testit
index f38d34a..c0496bb 100755
--- a/testit
+++ b/testit
@@ -92,11 +92,11 @@ class TwoHardlinksToSameContent(TestCase):
def main():
- klasses = [
- DifferentFiles,
- TwoIdenticalFiles,
- TwoHardlinksToSameContent,
- ]
+ klasses = [o
+ for name, o in globals().iteritems()
+ if type(o) == type(object) and
+ issubclass(o, TestCase) and
+ o != TestCase]
for klass in klasses:
test = klass()
test.setUp()