Skip to content

Commit

Permalink
Fix unit test arrrg
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jul 25, 2024
1 parent 770ea43 commit e91ddd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/utils/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def test_find_application_ok_rust(self):
os.chdir(dir_path)
cmd = ["cargo", "new", appname]
subprocess.check_output(cmd)
app_path = Path(appname)
app_path = dir_path / appname
os.chdir(app_path)
cmd = ["cargo", "build", "--release"]
subprocess.check_output(cmd)
result = misc.find_application(app_path, device, sdk)
expected = dir_path / app_path / "target" / device / "release" / appname
expected = app_path / "target" / "release" / appname
self.assertEqual(result, expected)

def test_find_application_nok_not_dir(self):
Expand Down

0 comments on commit e91ddd3

Please sign in to comment.