From 3076a47b4370f9e9a050f493099677fa1cdde734 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 24 Oct 2019 13:12:02 +0300
Subject: [PATCH] Always check only validated Test Suites.

---
 .../document.erp5.ERP5ScalabilityDistributor.py               | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py b/bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py
index 9112b74236..c69a9ce73f 100644
--- a/bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py
+++ b/bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.ERP5ScalabilityDistributor.py
@@ -312,7 +312,9 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor, object):
     return_dict = {}
     # Get test_suite informations from his title given in parameter
     try:
-      test_suite = portal.test_suite_module.searchFolder(title=test_suite_title)[0]
+      test_suite = portal.test_suite_module.searchFolder(
+                                              title=test_suite_title,
+                                              validation_state="validated")[0]
       cluster_configuration = test_suite.getClusterConfiguration()
       number_configuration_list = test_suite.getGraphCoordinate()
       randomized_path = test_suite.getRandomizedPath()
-- 
2.30.9