summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-10-15 12:43:45 -0700
committerMatt Clay <matt@mystile.com>2018-11-05 14:49:13 -0800
commitae2889cc84e56aa96a8b28d7cb5af50a31e35326 (patch)
treeb0f27239e958fa4efbab9c1841ae4ae27a4e45bb
parent6c066efb882bb11b27a9774441505b2369a5e2b2 (diff)
downloadansible-ae2889cc84e56aa96a8b28d7cb5af50a31e35326.tar.gz
Fix ansible-test --exclude with delegation.
Previously the option worked with integration commands but not units or sanity. (cherry picked from commit 38eba6084986322a477a931583063c2254e4db42)
-rw-r--r--test/runner/lib/executor.py2
-rw-r--r--test/runner/lib/sanity/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py
index 9124f2fefc..36f500ef2e 100644
--- a/test/runner/lib/executor.py
+++ b/test/runner/lib/executor.py
@@ -1235,7 +1235,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 ed4b0a5fec..724d1fcab5 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)