From e597b6b48f2eb565e83f2decb29a6bc5e59314f8 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Mon, 6 Jul 2020 15:10:56 +0200 Subject: [PATCH] pquic: be resilient to the current directory --- experiments/pquic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/experiments/pquic.py b/experiments/pquic.py index 76c7909..8ebb493 100644 --- a/experiments/pquic.py +++ b/experiments/pquic.py @@ -20,6 +20,8 @@ class PQUIC(Experiment): PARAMETER_CLASS = PQUICParameter BIN = "~/pquic/picoquicdemo" + CERT_FILE = "~/pquic/certs/cert.pem" + KEY_FILE = "~/pquic/certs/key.pem" SERVER_LOG = "pquic_server.log" CLIENT_LOG = "pquic_client.log" @@ -46,7 +48,8 @@ class PQUIC(Experiment): return " ".join([" -P {} ".format(p) for p in plugins]) def get_pquic_server_cmd(self): - s = "{} {} &> {} &".format(PQUIC.BIN, self.get_plugin_cmd(), PQUIC.SERVER_LOG) + s = "{} {} -c {} -k {} &> {} &".format(PQUIC.BIN, self.get_plugin_cmd(), + PQUIC.CERT_FILE, PQUIC.KEY_FILE, PQUIC.SERVER_LOG) logging.info(s) return s