X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Fppu_tu.py;h=94de246c490c64bcf09da304e1cb6c8f9095f62c;hb=042c7e70678df42c13cca5b3b2150ae30a29b7ab;hp=563774a953336151da78cf9f4bc8b10440f39410;hpb=e78080336c7f7b636cbc6d168bac1d54cec41a09;p=ppu.git diff --git a/tests/ppu_tu.py b/tests/ppu_tu.py index 563774a..94de246 100644 --- a/tests/ppu_tu.py +++ b/tests/ppu_tu.py @@ -3,6 +3,7 @@ import os import shutil +import sys from tempfile import mkdtemp @@ -14,7 +15,7 @@ def setup(): def teardown(): os.chdir(os.sep) # To the root of the FS - shutil.rmtree(tmp_dir) + shutil.rmtree(tmp_dir, ignore_errors=True) def find_in_path(name): @@ -23,6 +24,7 @@ def find_in_path(name): test_prog_path = os.path.join(path, name) if os.path.exists(test_prog_path): return test_prog_path + sys.exit("Cannot find %s in %s" % (name, os.environ["PATH"])) def create_files(files, subdirectory=None):