Просмотр исходного кода

Create the keys directory and fetch the keys before every run

Ian Goldberg 1 год назад
Родитель
Сommit
6326b812ad
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      run_experiments.py

+ 6 - 0
run_experiments.py

@@ -119,6 +119,12 @@ if __name__ == "__main__":
                     # Server outputs are captured by log files provided to each of the server
                     # launch calls made by App/launch
                     make = subprocess.call(["make", "-C", "..", "-j"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+                    try:
+                        os.mkdir("keys")
+                    except:
+                        # It's OK if it already exists
+                        pass
+                    pubkeys = subprocess.call(["./getpubkeys"])
                     server_process = subprocess.run(slaunch)
 
                     claunch = []