Skip to content

Commit 734d7f2

Browse files
committed
Also hide quarto binary
1 parent 2baa77b commit 734d7f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/testthat/_snaps/quarto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
at async Command.execute (<quarto.js full path with location>)
3333
3434
Caused by error:
35-
! System command 'quarto.exe' failed
35+
! System command '<quarto binary>' failed
3636

3737
# is_using_quarto correctly check directory
3838

tests/testthat/helper.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ transform_quarto_cli_in_output <- function(
171171
"<quarto.js full path with location>",
172172
lines
173173
)
174-
# fixup location differrence
174+
# fixup binary name difference it exists in the output
175+
# windows is quarto.exe while quarto on other OS
176+
lines <- gsub("quarto.exe", "<quarto binary>", lines)
175177
} else {
176178
# it will be quarto.exe only on windows
177179
lines <- gsub("quarto\\.(exe|cmd)", "quarto", lines)

0 commit comments

Comments
 (0)