2 Commits cc83e764c1 ... db15bc1b7b

Author SHA1 Message Date
  sshsshy db15bc1b7b Merge branch 'master' of https://git-crysp.uwaterloo.ca/piros/Scripts 2 years ago
  sshsshy f59708f0d6 Fix shebang to python3, fix SGX_FLAG in reproduce_results.sh 2 years ago
2 changed files with 3 additions and 4 deletions
  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 sys
 import os
 import os
 import subprocess
 import subprocess

+ 2 - 3
reproduce_results.sh

@@ -1,9 +1,8 @@
 #!/bin/bash
 #!/bin/bash
 
 
 SGX_DRIVER_FILE=/dev/isgx
 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
 then
   docker run --device /dev/isgx -dt --name zt_container zt_image bash -c "start-aesmd && exec bash"
   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"
   docker exec -t zt_container bash -c "cd /pir/ && ./run_ztlsoram.sh"