From 1ce2ea0b6c03a0f3906184a516c3bfb191461136 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 17 Feb 2017 10:50:36 -0800 Subject: [PATCH] Fix ansible-test handling of deleted test targets. --- test/runner/lib/classification.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runner/lib/classification.py b/test/runner/lib/classification.py index 9145e55171f..63ca804eab2 100644 --- a/test/runner/lib/classification.py +++ b/test/runner/lib/classification.py @@ -322,6 +322,9 @@ class PathMapper(object): return minimal if path.startswith('test/integration/targets/'): + if not os.path.exists(path): + return minimal + target = self.integration_targets_by_name[path.split('/')[3]] if 'hidden/' in target.aliases: