]> git.phdru.name Git - ppu.git/blobdiff - tests/ppu_tu.py
Refactor(tests): Exit with "name not found in PATH" in find_in_path
[ppu.git] / tests / ppu_tu.py
index 563774a953336151da78cf9f4bc8b10440f39410..1ce2b64fd040dc196dbf051c07c7156bdec879d7 100644 (file)
@@ -3,6 +3,7 @@
 
 import os
 import shutil
+import sys
 from tempfile import mkdtemp
 
 
@@ -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):