~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a few of the things the Clang static analyzer detects:
[disorder]
/
tests
/
dtest.py
diff --git
a/tests/dtest.py
b/tests/dtest.py
index
f17cf8e
..
a5a8be9
100644
(file)
--- a/
tests/dtest.py
+++ b/
tests/dtest.py
@@
-286,6
+286,7
@@
def stop_daemon():
Stop the daemon if it has not stopped already"""
global daemon
if daemon == None:
Stop the daemon if it has not stopped already"""
global daemon
if daemon == None:
+ print " (daemon not running)"
return
rc = daemon.poll()
if rc == None:
return
rc = daemon.poll()
if rc == None:
@@
-337,7
+338,9
@@
def run(module=None, report=True):
except Exception, e:
traceback.print_exc(None, sys.stderr)
failures += 1
except Exception, e:
traceback.print_exc(None, sys.stderr)
failures += 1
- stop_daemon()
+ finally:
+ stop_daemon()
+ os.system("ps -ef | grep disorderd")
if report:
if failures:
print " FAILED"
if report:
if failures:
print " FAILED"