From 0c35bb063ad771125193143d0c4f97a8db16cf1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 25 Oct 2017 15:00:29 +0200
Subject: [PATCH] [erp5_test_result] Cover distributor instead of tool

---
 .../portal_components/test.erp5.testTaskDistribution.py         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py b/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
index 297e877f38..b315085aee 100644
--- a/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
+++ b/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
@@ -306,7 +306,7 @@ class TestTaskDistribution(ERP5TypeTestCase):
   def _createTestResult(self, revision="r0=a,r1=a", node_title="Node0",
                               test_list=None, tic=1, allow_restart=False,
                               test_title="TEST FOO"):
-    result =  self.tool.createTestResult(
+    result =  self.distributor.createTestResult(
                                "", revision, test_list or [], allow_restart,
                                test_title=test_title, node_title=node_title)
     # we commit, since usually we have a remote call only doing this
-- 
2.30.9