mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
Never overwrite hardware config file (#122)
* Never overwrite hardware config file * Remove unneeded assert
This commit is contained in:
@@ -162,11 +162,6 @@ public class ConfigManager {
|
||||
// Delete old configs
|
||||
FileUtils.deleteDirectory(camerasFolder.toPath());
|
||||
|
||||
try {
|
||||
JacksonUtils.serialize(hardwareConfigFile.toPath(), config.getHardwareConfig());
|
||||
} catch (IOException e) {
|
||||
logger.error("Could not save hardware config!", e);
|
||||
}
|
||||
try {
|
||||
JacksonUtils.serialize(networkConfigFile.toPath(), config.getNetworkConfig());
|
||||
} catch (IOException e) {
|
||||
|
||||
@@ -79,9 +79,6 @@ public class ConfigTest {
|
||||
.toString());
|
||||
Assertions.assertTrue(camConfDir.exists(), "TestCamera config folder not found!");
|
||||
|
||||
Assertions.assertTrue(
|
||||
Files.exists(Path.of(configMgr.configDirectoryFile.toString(), "hardwareConfig.json")),
|
||||
"hardwareConfig.json file not found!");
|
||||
Assertions.assertTrue(
|
||||
Files.exists(Path.of(configMgr.configDirectoryFile.toString(), "networkSettings.json")),
|
||||
"networkSettings.json file not found!");
|
||||
|
||||
Reference in New Issue
Block a user