Lines Matching full:if
29 …add_argument('--smartredis-dir', type=str, default='', help='path to SmartSim library, if present')
47 return diff_output if diff_output else None
66 if test.startswith('navierstokes'):
96 … """Check if a test case should be skipped prior to running, returning the reason for skipping
105 Optional[str]: Skip reason, or `None` if test case should not be skipped
108 if (condition == 'cpu') and ('gpu' in resource):
110 if condition == 'torch' and not self.has_torch:
114 """Check if a test case should be allowed to fail, based on its stderr output
123 Optional[str]: Skip reason, or `None` if unexpeced error
125 if 'No SYCL devices of the requested type are available' in stderr:
134 """Check whether a test case is expected to fail and if it failed expectedly
154 bool: True if the test is allowed to print console output
159 if __name__ == '__main__':
163 if 'smartsim' in args.test:
168 if args.mode is RunMode.TAP:
170 if has_smartsim:
180 if is_new_subtest and args.mode == RunMode.TAP:
193 if args.mode == RunMode.TAP:
194 print(f'{"" if subtest_ok else "not "}ok 1 - {test_cases[0].category}')
199 if has_failures(result):
217 if args.mode is RunMode.JUNIT:
219 if has_failures(result):