Skip to content

Commit 890eb7c

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 a6710ab commit 890eb7c

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

@@ -77,6 +80,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
7780
parsed_args["simulate"] && exit(0)
7881

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