import os
import shutil
+import sys
from tempfile import mkdtemp
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):
#! /usr/bin/env python
-import os
import subprocess
import sys
from ppu_tu import setup, teardown, find_in_path # noqa
test_prog_path = find_in_path('cmp.py')
-if not test_prog_path:
- sys.exit("Cannot find cmp.py in %s" % os.environ["PATH"])
def create_file(name, content):
test_prog_path = find_in_path('remove-old-files.py')
-if not test_prog_path:
- sys.exit("Cannot find remove-old-files.py in %s" % os.environ["PATH"])
old_time = time() - 1000 * 24 * 3600 # 1000 days ago
#! /usr/bin/env python
-import os
import subprocess
import sys
from ppu_tu import setup, teardown, find_in_path # noqa
test_prog_path = find_in_path('rm.py')
-if not test_prog_path:
- sys.exit("Cannot find rm.py in %s" % os.environ["PATH"])
def test_rm():
#! /usr/bin/env python
-import os
import subprocess
import sys
from ppu_tu import setup, teardown, find_in_path # noqa
test_prog_path = find_in_path('which.py')
-if not test_prog_path:
- sys.exit("Cannot find which.py in %s" % os.environ["PATH"])
def test_which():