tests: handle missing ECCD results

This commit is contained in:
Michele Guerini Rocco 2024-01-30 12:34:45 +01:00
parent 2d16617db8
commit b0674c2d9b
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -83,6 +83,9 @@ class GrayTest:
ref = load_unit(self.reference / 'fort.7')
cand = load_unit(self.candidate / 'fort.7')
if ref.size == 0 or cand.size == 0:
raise unittest.SkipTest("ECCD results not available")
# precision as number of decimal places
prec = defaultdict(lambda: 3, [
('dPdVp', -2), ('dPdVmx', -2),