Skip to content

Commit 64058f3

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 70cb491 commit 64058f3

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
@@ -50,6 +50,9 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
5050
arg_type = Int
5151
default = additional_workers
5252
help = "How many additional workers to launch"
53+
"-v", "--verbose"
54+
action = :store_true
55+
help = "Run the tests with debug logs from Dagger"
5356
end
5457
end
5558

@@ -79,6 +82,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
7982
parsed_args["simulate"] && exit(0)
8083

8184
additional_workers = parsed_args["procs"]
85+
86+
if parsed_args["verbose"]
87+
ENV["JULIA_DEBUG"] = "Dagger"
88+
end
8289
else
8390
to_test = all_test_names
8491
@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)