From 36db4b7cc48e9e2b1bed5a977f36ef3a0f158ee8 Mon Sep 17 00:00:00 2001 From: Ersikan Date: Sun, 14 Mar 2021 18:12:42 +0100 Subject: [PATCH] test-cli: Remove temporary directory after tests --- test/cli.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cli.zig b/test/cli.zig index db58511d14..dedea67a59 100644 --- a/test/cli.zig +++ b/test/cli.zig @@ -28,6 +28,8 @@ pub fn main() !void { const zig_exe = try fs.path.resolve(a, &[_][]const u8{zig_exe_rel}); const dir_path = try fs.path.join(a, &[_][]const u8{ cache_root, "clitest" }); + defer fs.cwd().deleteTree(dir_path) catch {}; + const TestFn = fn ([]const u8, []const u8) anyerror!void; const test_fns = [_]TestFn{ testZigInitLib,