Skip to content

Commit 9536d65

Browse files
alexrpandrewrk
authored andcommitted
main: Don't pass --seed for zig run.
1 parent afddfe2 commit 9536d65

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main.zig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4314,10 +4314,12 @@ fn runOrTest(
43144314
defer argv.deinit();
43154315

43164316
if (test_exec_args.len == 0) {
4317-
try argv.appendSlice(&.{
4318-
exe_path,
4319-
try std.fmt.allocPrint(arena, "--seed=0x{x}", .{std.crypto.random.int(u32)}),
4320-
});
4317+
try argv.append(exe_path);
4318+
if (arg_mode == .zig_test) {
4319+
try argv.append(
4320+
try std.fmt.allocPrint(arena, "--seed=0x{x}", .{std.crypto.random.int(u32)}),
4321+
);
4322+
}
43214323
} else {
43224324
for (test_exec_args) |arg| {
43234325
try argv.append(arg orelse exe_path);

0 commit comments

Comments
 (0)