projects
/
mudpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4c063
)
Break outer loop of functional tests on failure
author
Jeremy Stanley
<fungi@yuggoth.org>
Sun, 6 Sep 2015 18:18:58 +0000
(18:18 +0000)
committer
Jeremy Stanley
<fungi@yuggoth.org>
Sun, 6 Sep 2015 18:18:58 +0000
(18:18 +0000)
When a test failure is encountered in the inner loop of functional
tests, also break out of the outer loop so that subsequent tests are
not run.
bin/test
patch
|
blob
|
history
diff --git
a/bin/test
b/bin/test
index
25a171b
..
cf90a6c
100755
(executable)
--- a/
bin/test
+++ b/
bin/test
@@
-146,6
+146,8
@@
for test, description in dialogue:
print("luser%s sending: %s" % (conversant, answer))
lusers[conversant].write(("%s\r\n" % answer).encode("utf-8"))
captures[conversant] += "%s\r\n" % answer
+ if not success:
+ break
for conversant in range(len(captures)):
try:
captures[conversant] += lusers[