diff --git a/site_ansto/instrument/server_config.tcl b/site_ansto/instrument/server_config.tcl index 23970575..b708853a 100644 --- a/site_ansto/instrument/server_config.tcl +++ b/site_ansto/instrument/server_config.tcl @@ -56,6 +56,13 @@ if {[info exists env(SICS_SIMULATION)] != 1} { # sics_exitus } } else { + if [file exists hostport_config_test.tcl] { + fileeval hostport_config_test.tcl + } else { +#TODO SICS-587 Abort with error when all instruments have been refactored. + clientput ERROR: hostport_config_test.tcl is missing + sics_exitus + } switch $env(SICS_SIMULATION) { "full" { set sicsroot ../ @@ -66,13 +73,6 @@ if {[info exists env(SICS_SIMULATION)] != 1} { set sicsroot ../ source sics_ports.tcl sics_simulation fakedev - if [file exists hostport_config_test.tcl] { - fileeval hostport_config_test.tcl - } else { - #TODO SICS-587 Abort with error when all instruments have been refactored. - clientput ERROR: hostport_config_test.tcl is missing - sics_exitus - } } "script_validator" { VarMake sics_script_validator Text internal @@ -88,6 +88,7 @@ if {[info exists env(SICS_SIMULATION)] != 1} { } } + # Set obj_simulation flags for each SICS_SIMULATION mode switch $env(SICS_SIMULATION) { "full" - "simdriv" - "script_validator" { dict for {simflag d} $SIMFLAG_VAL {