Skip to content

Commit b0674d9

Browse files
committed
Add a --verbose option to runtests.jl
This is a bit nicer than commenting/uncommenting a line in the code.
1 parent 9db21a0 commit b0674d9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
5151
arg_type = Int
5252
default = additional_workers
5353
help = "How many additional workers to launch"
54+
"-v", "--verbose"
55+
action = :store_true
56+
help = "Run the tests with debug logs from Dagger"
5457
end
5558
end
5659

@@ -80,6 +83,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
8083
parsed_args["simulate"] && exit(0)
8184

8285
additional_workers = parsed_args["procs"]
86+
87+
if parsed_args["verbose"]
88+
ENV["JULIA_DEBUG"] = "Dagger"
89+
end
8390
else
8491
to_test = all_test_names
8592
@info "Running all tests"

test/streaming.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@everywhere ENV["JULIA_DEBUG"] = "Dagger"
2-
31
@everywhere function rand_finite()
42
x = rand()
53
if x < 0.1

0 commit comments

Comments
 (0)