def call_file_compare_program(filepath, testout, fcout): """Call the file compare program for a given filepath. Write files with a diff to to testout. """ oldpath = libtest.get_old_filepath(filepath) # call file compare fclist = get_file_compare_list(filepath, oldpath) retval = subprocess.call(fclist, stdout=fcout) if retval > 1: libastyle.system_exit("Bad file compare return: " + str(retval)) if retval == 1: testout.write(filepath + '\n') return True return False
def call_file_compare_program(filepath, testout, fcout): """Call the file compare program for a given filepath. Write files with a diff to to testout. """ oldpath = libtest.get_old_filepath(filepath) # call file compare fclist = get_file_compare_list(filepath, oldpath) retval = subprocess.call(fclist, stdout=fcout) if retval > 1: libastyle.system_exit("Bad file compare return: " + str(retval)) if retval == 1: testout.write(filepath + '\n') return True return False