Commit 0a019d70 authored by David Dorchies's avatar David Dorchies
Browse files

wip: debugging SIC under wine

Refs #5
1 merge request!16Draft: Resolve "Test SIC execution into a Wine environment"
Pipeline #55196 failed with stage
in 2 minutes and 11 seconds
Showing with 13 additions and 5 deletions
+13 -5
......@@ -6,3 +6,4 @@
[.]INI$
^\.gitlab-ci\.yml$
^ci$
^\.devcontainer$
......@@ -26,4 +26,5 @@ Imports:
terra,
tidyquery,
tidyr,
xfun,
xml2
......@@ -86,11 +86,17 @@ sic_run_fortran <- function(cfg, prog, params) {
type = "cmd2"
)
logger::log_debug(cmd_line)
shell(
cmd_line,
wait = T,
translate = T
)
if (xfun::is_windows()) {
r <- shell(
cmd_line,
wait = T,
translate = T
)
} else {
r <- system(paste("wine", cmd_line))
}
attr(r, "cmd_line") <- cmd_line
return(r)
}
#' @noRd
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment