Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 11, 2023
2 parents 900b284 + f1a8976 commit 7073603
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions spinnaker_testbase/root_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import unittest
from spinn_utilities.exceptions import NotSetupException
from spinnman.exceptions import SpinnmanException
from spinn_utilities.config_holder import (
get_config_bool, get_config_str, has_config_option)
from pacman.exceptions import PacmanPartitionException, PacmanValueError
from spalloc_client.job import JobDestroyedError
from spinn_front_end_common.data import FecDataView
Expand Down Expand Up @@ -48,12 +46,10 @@ def assert_not_spin_three():
:raises SkipTest: If we're on the wrong sort of board
"""
if has_config_option("Machine", "version"):
version = get_config_str("Machine", "version")
virtual = get_config_bool("Machine", "virtual_board")
if version in ["2", "3"] and not virtual:
FecDataView.raise_skiptest(
f"This test will not run on a spinn-{version} board")
version = FecDataView.get_machine_version().number
if not version == 5:
raise SkipTest(
f"This test will not run on a spinn-{version} board")

def error_file(self):
"""
Expand Down

0 comments on commit 7073603

Please sign in to comment.