+ # Try running the upgrade tool
+ print "Attempting an upgrade..."
+ rc = subprocess.call(["disorder-dbupgrade",
+ "--config", "%s/config" % dtest.testroot])
+ if rc != 0:
+ print "disorder-dbupgrade: FAILED: exit code %s" % rc
+ sys.exit(1)
+ print "Testing daemon after upgrade..."
+ dtest.start_daemon()
+ time.sleep(2)
+ assert dtest.check_files() == 0