cope with case go is not in PATH
This commit is contained in:
parent
b0e2eb2508
commit
a601ffddea
@ -4,6 +4,7 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
class MpExperienceQUIC(MpExperience):
|
class MpExperienceQUIC(MpExperience):
|
||||||
|
GO_BIN = "/usr/local/go"
|
||||||
SERVER_LOG = "quic_server.log"
|
SERVER_LOG = "quic_server.log"
|
||||||
CLIENT_LOG = "quic_client.log"
|
CLIENT_LOG = "quic_client.log"
|
||||||
CLIENT_GO_FILE = "~/go/src/github.com/lucas-clemente/quic-go/example/client_benchmarker/main.go"
|
CLIENT_GO_FILE = "~/go/src/github.com/lucas-clemente/quic-go/example/client_benchmarker/main.go"
|
||||||
@ -52,14 +53,14 @@ class MpExperienceQUIC(MpExperience):
|
|||||||
self.random_size)
|
self.random_size)
|
||||||
|
|
||||||
def getQUICServerCmd(self):
|
def getQUICServerCmd(self):
|
||||||
s = "go run " + MpExperienceQUIC.SERVER_GO_FILE + " -www . "
|
s = MpExperienceQUIC.GO_BIN + " run " + MpExperienceQUIC.SERVER_GO_FILE
|
||||||
s += "-certpath " + MpExperienceQUIC.CERTPATH + " &>"
|
s += " -www . -certpath " + MpExperienceQUIC.CERTPATH + " &>"
|
||||||
s += MpExperienceQUIC.SERVER_LOG + " &"
|
s += MpExperienceQUIC.SERVER_LOG + " &"
|
||||||
print(s)
|
print(s)
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def getQUICClientCmd(self):
|
def getQUICClientCmd(self):
|
||||||
s = "go run " + MpExperienceQUIC.CLIENT_GO_FILE
|
s = MpExperienceQUIC.GO_BIN + " run " + MpExperienceQUIC.CLIENT_GO_FILE
|
||||||
if int(self.multipath) > 0:
|
if int(self.multipath) > 0:
|
||||||
s += " -m"
|
s += " -m"
|
||||||
s += " https://" + self.mpConfig.getServerIP() + ":6121/random &>" + MpExperienceQUIC.CLIENT_LOG
|
s += " https://" + self.mpConfig.getServerIP() + ":6121/random &>" + MpExperienceQUIC.CLIENT_LOG
|
||||||
|
Loading…
Reference in New Issue
Block a user