Skip to content

Commit

Permalink
Fix runaway test teardown method
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Apr 6, 2024
1 parent a68ecfa commit ef6df93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,10 @@ def tearDown(self):
if_present_rm("CdTe_bulk")

for i in os.listdir():
if os.path.isdir(i) and ("MgO" in i or any("vasp" in j for j in os.listdir(i))):
if os.path.isdir(i) and (
"MgO" in i
or any("vasp_" in j and os.path.isdir(os.path.join(i, j)) for j in os.listdir(i))
):
if_present_rm(i)

if_present_rm("MgO_defects_generator.json")
Expand Down

0 comments on commit ef6df93

Please sign in to comment.