test-cli: Remove temporary directory after tests

This commit is contained in:
Ersikan 2021-03-14 18:12:42 +01:00
parent 8942243f7a
commit 36db4b7cc4

View File

@ -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,