Add pytest request path to location of cleanup files in cpp driver test

This commit is contained in:
Patrick Shriwise 2022-03-25 13:25:55 -05:00
parent 8a6dc7e9f8
commit c943128587

View file

@ -48,8 +48,8 @@ def cpp_driver(request):
finally:
# Remove local build directory when test is complete
shutil.rmtree('build')
os.remove('CMakeLists.txt')
shutil.rmtree(request.node.path.parent / 'build')
os.remove(request.node.path.parent / 'CMakeLists.txt')
@pytest.fixture