From c636be0c655ebad4adc9937bfa9b1d9e21b8cae3 Mon Sep 17 00:00:00 2001
From: Florian Fischer <florian.fl.fischer@fau.de>
Date: Fri, 9 Jul 2021 15:46:24 +0200
Subject: [PATCH] [eval.py] add host command line option

---
 eval.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/eval.py b/eval.py
index aeee783..210483d 100755
--- a/eval.py
+++ b/eval.py
@@ -619,6 +619,8 @@ if __name__ == '__main__':
                         '--local',
                         help='run benchmark on localhost',
                         action='store_true')
+    parser.add_argument('--host',
+                        help='host running the echo servers')
     parser.add_argument('-r',
                         '--runs',
                         help='benchmark runs',
@@ -713,6 +715,13 @@ if __name__ == '__main__':
 
         HOST = "localhost"
 
+    if args.host:
+        if HOST == 'localhost':
+            print('ERROR: host optioan and local option can not be passed at once')
+            sys.exit(1)
+
+        HOST = args.host
+
     if args.implementations:
         SERVER_CMDS = {
             i: c
-- 
GitLab