Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Aug 22, 2024
1 parent aa5aa06 commit d448afe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.Date;

import org.photonvision.common.logging.LogGroup;
import org.photonvision.common.logging.Logger;

Expand All @@ -40,6 +39,7 @@ public class PathManager {

/**
* Change the root config folder. Must happen before ConfigManager's singleton loads.
*
* @param rootFolder
*/
public static void setRootFolder(Path rootFolder) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.pytest_cache
test-resources
networktables.json
*.sqlite
*.sqlite
5 changes: 1 addition & 4 deletions scripts/test/photonvision_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from distutils.dir_util import copy_tree


@contextlib.contextmanager
def test_resources_wrapper():
print("Copying test-resources folder over (ew ew ew)")
Expand All @@ -20,10 +21,6 @@ def test_resources_wrapper():
print("Not deleting files (too lazy to implement cleaning these up)")






@contextlib.contextmanager
def photonvision_wrapper(
jar_path: Union[str, os.PathLike],
Expand Down
10 changes: 8 additions & 2 deletions scripts/test/test_photonlibcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ def test_photonlibpy():
golden_config_sqlite=os.path.abspath("photon_nt_servermode.sqlite"),
# java_exe="C:\\Users\\Public\\wpilib\\2024\\jdk\\bin\\java.exe",
), test_resources_wrapper():
# assumes we have already installed the test binary via gradle via
# assumes we have already installed the test binary via gradle via
# checkPhotonlibIntegrationTestWindowsx86-64DebugGoogleTestExe
ret = subprocess.run(
# todo: need a cross-platform way to do this, screm
["cd", "../../", "&&", ".\\gradlew", 'checkPhotonlibIntegrationTestLinuxx86-64DebugGoogleTestExe'],
[
"cd",
"../../",
"&&",
".\\gradlew",
"checkPhotonlibIntegrationTestLinuxx86-64DebugGoogleTestExe",
],
shell=True,
)
print(ret)
Expand Down

0 comments on commit d448afe

Please sign in to comment.