Skip to content

Commit cb4fdfe

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 476ee0f commit cb4fdfe

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

@@ -78,6 +81,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
7881
parsed_args["simulate"] && exit(0)
7982

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