Updated valgrind.py to ignore multi-planet and vspace tests.
@@ -17,10 +17,11 @@ print('done.')
tot_fail = 0
tot_test = 0
for sub in subdir:
+ os.chdir(sub)
+ if not os.path.exists("vspace.in"): # Ignore vspace and multi-planet
tot_test += 1
sys.stdout.write(sub)
sys.stdout.flush()
- os.chdir(sub)
fout = sub+'.valgrind'
cmd='valgrind --track-origins=yes ../../vplanet vpl.in >& '+fout
subprocess.run(cmd, shell=True)
@@ -32,6 +33,10 @@ for sub in subdir:
if n_errors > 0:
tot_fail += 1
print(': '+repr(n_errors)+' error(s)')
+ sys.stdout.flush()
+ else:
+ print(": No errors")
+ sys.stdout.flush()
os.chdir('..')
sys.stdout.write('Done! ')
