From 4cc1158fbcc5380cf7d7b38cd63f04733701e7fa Mon Sep 17 00:00:00 2001 From: bsubei <6508762+bsubei@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:26:03 -0400 Subject: [PATCH] fix tests build file broken by addRemoveDirTree now requiring LazyPath --- test/tests.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index 9fed107..5f64f8e 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -50,7 +50,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { case_step.dependOn(&verify.step); } - const cleanup = b.addRemoveDirTree(tmp_path); + const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } }); cleanup.step.dependOn(case_step); step.dependOn(&cleanup.step); @@ -82,7 +82,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { const verify = CheckStep.create(b, exercises, stderr); verify.step.dependOn(&cmd.step); - const cleanup = b.addRemoveDirTree(tmp_path); + const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } }); cleanup.step.dependOn(&verify.step); step.dependOn(&cleanup.step);