From acda0a41f6d3818be99cc59255502d2ee32afe8b Mon Sep 17 00:00:00 2001 From: Will Urbanski <57372819+willurbanski@users.noreply.github.com> Date: Thu, 15 Oct 2020 10:22:38 -0600 Subject: [PATCH] Fix off-by-one and misspelling (#1257) --- execution-frameworks/contrib/python/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution-frameworks/contrib/python/runner.py b/execution-frameworks/contrib/python/runner.py index 4d49a353..670a48fb 100644 --- a/execution-frameworks/contrib/python/runner.py +++ b/execution-frameworks/contrib/python/runner.py @@ -609,9 +609,9 @@ class AtomicRunner(): # Gets Executors. executors = get_valid_executors(tech) - if len(executors) < position: + if len(executors) - 1 < position: print("The position '{}' couldn't be found.".format(position)) - print("The teqhnique {} has {} available tests for the current platform. Skipping...".format(technique_name,len(executors))) + print("The technique {} has {} available tests for the current platform. Skipping...".format(technique_name,len(executors))) return False print("================================================")