Skip to content

Commit

Permalink
Ensure we get output
Browse files Browse the repository at this point in the history
  • Loading branch information
softmattertheory committed Oct 25, 2024
1 parent f8cb115 commit 9950df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def getoutput(filepath):
lines[i+1]=stk
# and remove them
return list(filter(lambda x: x!=stk, lines))

def run(file,testLog,CI):
ret = 1
print(file+":", end=" ")
Expand All @@ -72,7 +73,7 @@ def run(file,testLog,CI):
tmp = file + '.out'

# Run the test
os.system(command + ' ' +file + ' > ' + tmp)
os.system(command + ' ' +file) # + ' > ' + tmp)

# If we produced output
if os.path.exists(tmp):
Expand Down

0 comments on commit 9950df1

Please sign in to comment.