Browse Source

Fix shebang to python3, fix SGX_FLAG in reproduce_results.sh

sshsshy 6 months ago
parent
commit
f59708f0d6
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 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"