Commit 121734a0 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[1p_1p] Skip test if no executable exists

parent cbc39ecb
#!/usr/bin/env python
from math import *
import os.path
import subprocess
import sys
......@@ -20,6 +21,10 @@ for i in range(2, len(sys.argv)):
# loop over the different permeability ratios
for permIndex in range(0, len(k)):
# check whether executable exists
if not os.path.isfile(execName):
sys.exit(77)
# remove the old log file
subprocess.call(['rm', execName + '.log'])
print("Removed old log file (" + execName + '.log' + ")!")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment