projects
/
barrelfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d8e28b1
)
harness: Fix webserver test to not choke when test log missing
author
Simon Gerber
<simon.gerber@inf.ethz.ch>
Fri, 7 Oct 2016 16:05:22 +0000 (18:05 +0200)
committer
Simon Gerber
<simon.gerber@inf.ethz.ch>
Fri, 7 Oct 2016 16:05:22 +0000 (18:05 +0200)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>
tools/harness/tests/webserver.py
patch
|
blob
|
history
diff --git
a/tools/harness/tests/webserver.py
b/tools/harness/tests/webserver.py
index
1bb1321
..
f9f472b
100644
(file)
--- a/
tools/harness/tests/webserver.py
+++ b/
tools/harness/tests/webserver.py
@@
-205,7
+205,12
@@
class WebserverTest(WebCommon):
def process_data(self, testdir, rawiter):
# the test passed iff we see at least one PASS and no FAILs in the log
passed = None
- testlog = open(os.path.join(testdir, TEST_LOG_NAME), 'r')
+ try:
+ testlog = open(os.path.join(testdir, TEST_LOG_NAME), 'r')
+ except IOError as e:
+ debug.verbose("Cannot find test log, failing test")
+ return PassFailResult(False, reason="Cannot find test log")
+
for line in testlog:
if re.match('Test:.*FAIL$', line):
passed = False