def notracks():
pass
-def start():
- """start()
+def start_daemon():
+ """start_daemon()
Start the daemon."""
global daemon
disorder._configfile = "%s/config" % testroot
disorder._userconf = False
-def stop():
- """stop()
+def stop_daemon():
+ """stop_daemon()
Stop the daemon if it has not stopped already"""
global daemon
failures += 1
print e
finally:
- stop()
+ stop_daemon()
if report:
if failures:
print " FAILED"
def test():
"""Just start the server and then stop it a few seconds later"""
- dtest.start()
+ dtest.start_daemon()
time.sleep(2)
- dtest.stop()
if __name__ == '__main__':
dtest.run()
def test():
"""Ask the server its version number"""
- dtest.start()
+ dtest.start_daemon()
time.sleep(2) # give the daemon a chance to start up
c = disorder.client()
v = c.version()
print "Server version: %s" % v
- dtest.stop()
if __name__ == '__main__':
dtest.run()