From 8b632bcb6dee34bf840155e0d219cae72b452bc0 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 22 Apr 2019 18:55:55 +0100 Subject: [PATCH] Skip cleanup if its not needed (when a test is skipped) --- bin/run_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/run_test.py b/bin/run_test.py index bb5cd6db..746061c4 100755 --- a/bin/run_test.py +++ b/bin/run_test.py @@ -10,7 +10,8 @@ def single_run(test_project): ) # clean up - shutil.rmtree('wheelhouse') + if os.path.exists('wheelhouse'): + shutil.rmtree('wheelhouse') if __name__ == '__main__': import argparse