#! /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):
create_file('test3', 'test3')
create_file('test4', 'test4')
assert subprocess.call(
- [sys.executable, test_prog_path, "-i", "test3", "test4"]) == 1
+ [sys.executable, test_prog_path, "-s", "test3", "test4"]) == 1