]> git.phdru.name Git - ppu.git/blobdiff - tests/ppu_tu.py
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[ppu.git] / tests / ppu_tu.py
index 563774a953336151da78cf9f4bc8b10440f39410..94de246c490c64bcf09da304e1cb6c8f9095f62c 100644 (file)
@@ -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):