chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync up with disorder.dev
[disorder]
/
tests
/
alltests
diff --git
a/tests/alltests
b/tests/alltests
index 4e3f64da1a200e3838a164a78b7394dc90788fd8..b115f7d1e226c0c113e5858c30a83024f85873df 100755
(executable)
--- a/
tests/alltests
+++ b/
tests/alltests
@@
-40,6
+40,8
@@
import dtest
# call dtest.run
tests = []
for f in os.listdir(testdir):
# call dtest.run
tests = []
for f in os.listdir(testdir):
+ if f == 'dtest.py': # special case
+ continue
r = re.search("^(.*)\\.py$", f)
if r is not None:
isTest = False
r = re.search("^(.*)\\.py$", f)
if r is not None:
isTest = False
@@
-55,11
+57,7
@@
tests.sort() # let's have a consistent order
for test in tests:
print "Test '%s'" % test
for test in tests:
print "Test '%s'" % test
- m = __import__(test)
- dtest.run(getattr(m, "test"),
- setup=getattr(m, "setup", None),
- report=False,
- name=test)
+ dtest.run(test, report=False)
print "%d tests" % dtest.tests
if dtest.failures:
print "%d tests" % dtest.tests
if dtest.failures: