Skip to content

Commit

Permalink
Merge pull request #49 from SpiNNakerManchester/is_config_none
Browse files Browse the repository at this point in the history
Is config none
  • Loading branch information
Christian-B authored Sep 11, 2023
2 parents f0b0b35 + 7c59699 commit f1a8976
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 @@ -19,8 +19,6 @@
from unittest import SkipTest
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 @@ -49,12 +47,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:
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 f1a8976

Please sign in to comment.