An attempt to proceed with dirty directory may lead to strange effects. Say, reproduce files will contain tests from previous runs. In fact test-run expects that the directory is successfully deleted.
Let's give a warning when shutil.rmtree(args.vardir) in lib/__init__.py is unable to remove the directory. Check that the directory exists first.
Maybe it even worth to give an error, because test-run may work incorrectly in the case.
An attempt to proceed with dirty directory may lead to strange effects. Say, reproduce files will contain tests from previous runs. In fact test-run expects that the directory is successfully deleted.
Let's give a warning when
shutil.rmtree(args.vardir)inlib/__init__.pyis unable to remove the directory. Check that the directory exists first.Maybe it even worth to give an error, because test-run may work incorrectly in the case.