diff --git a/tasks.py b/tasks.py index e532d6f..78627e9 100644 --- a/tasks.py +++ b/tasks.py @@ -214,6 +214,7 @@ def synth(c, target): @task def test(c, target): + to_run = [] for target in expand_test_target(target): out_info, out_sim, out_bsc = ensure_build_dirs(target, "info", "sim", "bsc") libdirs = bluespec_libdirs(target, "sim") @@ -226,8 +227,11 @@ def test(c, target): testdata_tgt = testdata_tgt.relative_to(out_sim, walk_up=True) testdata.unlink(missing_ok=True) testdata.symlink_to(testdata_tgt, target_is_directory=True) - with c.cd(out_sim): - c.run(f"./TB -V {target.stem}.vcd") + to_run.append((out_sim, f"./TB -V {target.stem}.vcd")) + for d, cmd in to_run: + print("") + with c.cd(d): + c.run(cmd) @task def clean(c):