2 Commity cc83e764c1 ... db15bc1b7b

Autor SHA1 Wiadomość Data
  sshsshy db15bc1b7b Merge branch 'master' of https://git-crysp.uwaterloo.ca/piros/Scripts 2 lat temu
  sshsshy f59708f0d6 Fix shebang to python3, fix SGX_FLAG in reproduce_results.sh 2 lat temu
2 zmienionych plików z 3 dodań i 4 usunięć
  1. 1 1
      plotter/gen_graphs.py
  2. 2 3
      reproduce_results.sh

+ 1 - 1
plotter/gen_graphs.py

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 import sys
 import os
 import subprocess

+ 2 - 3
reproduce_results.sh

@@ -1,9 +1,8 @@
 #!/bin/bash
 
 SGX_DRIVER_FILE=/dev/isgx
-test -e "$SGX_DRIVER_FILE"
-SGX_FLAG=$?
-if [ $SGX_FLAG ]
+test -e "$SGX_DRIVER_FILE" && SGX_FLAG=1 || SGX_FLAG=0
+if [ $SGX_FLAG == "1" ]
 then
   docker run --device /dev/isgx -dt --name zt_container zt_image bash -c "start-aesmd && exec bash"
   docker exec -t zt_container bash -c "cd /pir/ && ./run_ztlsoram.sh"