mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add error reporting to AbstractComsSetup test initialization. (#800)
This commit is contained in:
@@ -46,16 +46,22 @@ public abstract class AbstractComsSetup {
|
||||
*/
|
||||
static {
|
||||
if (!initialized) {
|
||||
// Set some implementations so that the static methods work properly
|
||||
RobotBase.initializeHardwareConfiguration();
|
||||
HAL.observeUserProgramStarting();
|
||||
DriverStation.getInstance().getAlliance();
|
||||
try {
|
||||
// Set some implementations so that the static methods work properly
|
||||
RobotBase.initializeHardwareConfiguration();
|
||||
HAL.observeUserProgramStarting();
|
||||
DriverStation.getInstance().getAlliance();
|
||||
|
||||
ds = new MockDS();
|
||||
ds.start();
|
||||
ds = new MockDS();
|
||||
ds.start();
|
||||
|
||||
LiveWindow.setEnabled(false);
|
||||
TestBench.out().println("Started coms");
|
||||
LiveWindow.setEnabled(false);
|
||||
TestBench.out().println("Started coms");
|
||||
} catch (Exception ex) {
|
||||
TestBench.out().println("Exception during AbstractComsSetup initialization: " + ex);
|
||||
ex.printStackTrace(TestBench.out());
|
||||
throw ex;
|
||||
}
|
||||
|
||||
// Wait until the robot is enabled before starting the tests
|
||||
int enableCounter = 0;
|
||||
|
||||
Reference in New Issue
Block a user