Issue #3334552 by yash.rode, phenaproxima, Wim Leers, tedbow: Ensure that intentionally failed test stage directories are deleted after tests complete