mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
test-incremental: ignore .swp files
This commit is contained in:
@@ -2700,6 +2700,7 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []cons
|
||||
var it = try dir.walk(b.graph.arena);
|
||||
while (try it.next(io)) |entry| {
|
||||
if (entry.kind != .file) continue;
|
||||
if (std.mem.endsWith(u8, entry.basename, ".swp")) continue;
|
||||
|
||||
for (test_filters) |test_filter| {
|
||||
if (std.mem.indexOf(u8, entry.path, test_filter)) |_| break;
|
||||
|
||||
Reference in New Issue
Block a user