Lines Matching full:update
128 def open_test_result(dir_name, file_name, update): argument
129 mode = 'r+' if update else 'r'
133 if not update:
138 def test_and_diff(test_name, dir_name, update): argument
155 outfp = open_test_result(dir_name, test_name + '.out', update)
156 errfp = open_test_result(dir_name, test_name + '.err', update)
168 print("%s %s" % (test_name, 'UPDATE' if update else 'FAIL'),
175 if not update:
199 parser.add_argument('-u', '--update', action='store_true',
201 help="update expected test results")
210 status |= test_and_diff(test_name, dir_name, args.update)