Skip to content

Commit 541b07b

Browse files
Nathan LeeChromeos LUCI
Nathan Lee
authored and
Chromeos LUCI
committed
devtools/test_dsp_rust.py: Fix the bug not compiling rust codes
The test_dsp_rust.py did not actually compile the rust codes, fix it so it runs correctly now. BUG=None TEST=None Change-Id: I639cf64c2dff668ad72ba9fdab7a2674db531533 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5711468 Commit-Queue: ChromeOS Auto Runner <[email protected]> Tested-by: [email protected] <[email protected]> Reviewed-by: Li-Yu Yu <[email protected]> Commit-Queue: Nathan Lee <[email protected]>
1 parent 7de206c commit 541b07b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

devtools/test_dsp_rust/test_dsp_rust.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
os.mkdir(os.path.join(SCRIPT_DIR, "sandbox"))
4545
except FileExistsError:
4646
pass
47+
48+
subprocess.run(["bazel", "build", "//cras/src/dsp/tests:" + BUILD_TARGET], cwd=CUR_ADHD)
4749
shutil.copy(
48-
os.path.join("bazel-bin/cras/src/dsp/tests/", BUILD_TARGET),
50+
os.path.join(CUR_ADHD, "bazel-bin/cras/src/dsp/tests/", BUILD_TARGET),
4951
os.path.join(SCRIPT_DIR, "sandbox/rust"),
5052
)
5153
subprocess.run(["bazel", "build", "//cras/src/dsp/tests:" + BUILD_TARGET], cwd=args.adhd_dir)
5254
shutil.copy(
53-
os.path.join("bazel-bin/cras/src/dsp/tests/", BUILD_TARGET),
55+
os.path.join(args.adhd_dir, "bazel-bin/cras/src/dsp/tests/", BUILD_TARGET),
5456
os.path.join(SCRIPT_DIR, "sandbox/c"),
5557
)
5658
os.chdir(SCRIPT_DIR)

0 commit comments

Comments
 (0)