Skip to content

Commit

Permalink
Fix unit test again
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jul 25, 2024
1 parent 885a168 commit 3f42a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ragger/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def find_application(base_dir: Path, device: str, sdk: str) -> Path:
output = subprocess.check_output(cmd)
metadata = json.loads(output)
target = Path(metadata["target_directory"])
app = app / target / device / "release" / app_name
app = target / device / "release" / app_name
else:
app = app / "build" / device / "bin" / "app.elf"
if not app.is_file():
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_find_application_ok_rust(self):
os.chdir(app_path)
cmd = ["cargo", "build", "--release"]

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable cmd is not used.
result = misc.find_application(app_path, device, sdk)
expected = app_path / "target" / device / "release" / appname
expected = dir_path / app_path / "target" / device / "release" / appname
self.assertEqual(result, expected)

def test_find_application_nok_not_dir(self):
Expand Down

0 comments on commit 3f42a51

Please sign in to comment.