Adding option to skip the XRT flow when needed.
@@ -36,6 +36,8 @@ def main():
action='store_true', required=False)
parser.add_argument('--skip-builders', action='store_true',
help='Skip runtime builder flow', default=False)
+ parser.add_argument('--skip-xrt', action='store_true',
+ help='Skip XRT flow', default=False)
args = parser.parse_args()
if args.verbose:
@@ -48,14 +50,16 @@ def main():
if 'app' in output:
prev_builder_value = output.get('app').get('use_runtime_builders')
+ if args.skip_xrt:
+ logging.info('Skipping xrt flow.')
+ else:
# disable app/use_runtime_builders to hit the XRT flow
_set_runtime_builder_flag(False)
_deploy_and_test(args.directory, args.language, True)
if args.skip_builders:
logging.info('Skipping builder flow.')
- return 0
-
+ else:
# set app/use_runtime_builders to explicitly enter builder flow
_set_runtime_builder_flag(True)
_deploy_and_test(args.directory, args.language, False)
