Rev2049, Delete test.tar.bz2 after benchmark
This commit is contained in:
parent
fbed15318b
commit
9b480b41e1
2 changed files with 4 additions and 3 deletions
|
@ -732,8 +732,8 @@ class UiRequestPlugin(object):
|
|||
yield "."
|
||||
assert CryptHash.sha512sum(open("%s/test.tar.bz2" % config.data_dir)) == "182c0a3a8da7e6e2eb3bf9c661caeec8a91b12bcf389bd3facdbc5a8f6645199", "Invalid hash"
|
||||
|
||||
if os.path.isfile("%s/test.tar.bz2a" % config.data_dir):
|
||||
os.unlink("%s/test.tar.bz2a" % config.data_dir)
|
||||
if os.path.isfile("%s/test.tar.bz2" % config.data_dir):
|
||||
os.unlink("%s/test.tar.bz2" % config.data_dir)
|
||||
|
||||
|
||||
yield "<br>Done. Total: %.2fs" % (time.time() - t)
|
||||
|
|
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.4"
|
||||
self.rev = 2048
|
||||
self.rev = 2049
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
@ -191,6 +191,7 @@ class Config(object):
|
|||
|
||||
self.parser.add_argument('--disable_udp', help='Disable UDP connections', action='store_true')
|
||||
self.parser.add_argument('--proxy', help='Socks proxy address', metavar='ip:port')
|
||||
self.parser.add_argument('--bind', help='Bind outgoing sockets to this address', metavar='ip')
|
||||
self.parser.add_argument('--ip_external', help='Set reported external ip (tested on start if None)', metavar='ip')
|
||||
self.parser.add_argument('--trackers', help='Bootstraping torrent trackers', default=trackers, metavar='protocol://address', nargs='*')
|
||||
self.parser.add_argument('--trackers_file', help='Load torrent trackers dynamically from a file', default=False, metavar='path')
|
||||
|
|
Loading…
Reference in a new issue