Skip to content

Commit

Permalink
Fix check for Continuous Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
softmattertheory committed Oct 24, 2024
1 parent adcaa8f commit 4749cd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ def run(file,testLog,CI):

# look for a command line arguement that says
# this is being run for continous integration
CI = sys.argv == '-c'

CI = False
for arg in sys.argv:
if arg == '-c': # if the argument is -c, then we are running in CI mode
CI = True

files=glob.glob('**/**.'+ext, recursive=True)
with open("FailedExamples.txt",'w') as testLog:
Expand Down

0 comments on commit 4749cd2

Please sign in to comment.