From a85d05e1e84632db54a842396bc7349e2f13ade9 Mon Sep 17 00:00:00 2001
From: Elliot Oram <elliot.oram@stfc.ac.uk>
Date: Thu, 23 Nov 2017 16:20:03 +0000
Subject: [PATCH] Check all workspaces in workspace group

Refs #21214
---
 .../SystemTests/tests/analysis/ISIS_PowderPolarisTest.py   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py b/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py
index b7dd0113173..5faf10b8166 100644
--- a/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py
+++ b/Testing/SystemTests/tests/analysis/ISIS_PowderPolarisTest.py
@@ -54,8 +54,8 @@ class CreateVanadiumTest(stresstesting.MantidStressTest):
 
     def validate(self):
         splined_ws, unsplined_ws = self.calibration_results
-        self.assertEqual(unsplined_ws[0].sample().getMaterial().name(), 'V')
-        self.assertEqual(splined_ws[0].sample().getMaterial().name(), 'V')
+        for ws in splined_ws+unsplined_ws:
+            self.assertEqual(ws.sample().getMaterial().name(), 'V')
         return (unsplined_ws.getName(), "ISIS_Powder-POLARIS00098533_unsplined.nxs",
                 splined_ws.getName(), "ISIS_Powder-POLARIS00098533_splined.nxs")
 
@@ -82,7 +82,8 @@ class FocusTest(stresstesting.MantidStressTest):
         self.focus_results = run_focus()
 
     def validate(self):
-        self.assertEqual(self.focus_results[0].sample().getMaterial().name(), 'Si')
+        for ws in self.focus_results:
+            self.assertEqual(ws.sample().getMaterial().name(), 'Si')
         return self.focus_results.getName(), "ISIS_Powder-POLARIS98533_FocusSempty.nxs"
 
     def cleanup(self):
-- 
GitLab