From 38eba6084986322a477a931583063c2254e4db42 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 15 Oct 2018 12:43:45 -0700 Subject: [PATCH] Fix ansible-test --exclude with delegation. Previously the option worked with integration commands but not units or sanity. --- test/runner/lib/executor.py | 2 +- test/runner/lib/sanity/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index c422022a069..82ceeb95d97 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -1213,7 +1213,7 @@ def command_units(args): raise AllTargetsSkipped() if args.delegate: - raise Delegate(require=changes) + raise Delegate(require=changes, exclude=args.exclude) version_commands = [] diff --git a/test/runner/lib/sanity/__init__.py b/test/runner/lib/sanity/__init__.py index ed4b0a5fece..724d1fcab5b 100644 --- a/test/runner/lib/sanity/__init__.py +++ b/test/runner/lib/sanity/__init__.py @@ -65,7 +65,7 @@ def command_sanity(args): raise AllTargetsSkipped() if args.delegate: - raise Delegate(require=changes) + raise Delegate(require=changes, exclude=args.exclude) install_command_requirements(args)