diff --git a/plotly/src/plot.rs b/plotly/src/plot.rs index 98abfff..828d34c 100644 --- a/plotly/src/plot.rs +++ b/plotly/src/plot.rs @@ -761,7 +761,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(not(target_os = "macos"))] + // #[cfg(not(target_os = "macos"))] #[test] #[cfg(feature = "kaleido")] fn test_save_to_jpeg() { @@ -773,7 +773,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(not(target_os = "macos"))] + // #[cfg(not(target_os = "macos"))] #[test] #[cfg(feature = "kaleido")] fn test_save_to_svg() { @@ -822,7 +822,7 @@ mod tests { } #[test] - #[ignore] // Fails in the CI + // #[ignore] // Fails in the CI #[cfg(not(target_os = "macos"))] #[cfg(feature = "kaleido")] fn test_image_to_base64() { @@ -851,7 +851,7 @@ mod tests { } #[test] - #[ignore] // Fails in the CI + // #[ignore] // Fails in the CI #[cfg(not(target_os = "macos"))] #[cfg(feature = "kaleido")] fn test_image_to_svg_string() { diff --git a/plotly_kaleido/src/lib.rs b/plotly_kaleido/src/lib.rs index a506228..148bb0e 100644 --- a/plotly_kaleido/src/lib.rs +++ b/plotly_kaleido/src/lib.rs @@ -198,7 +198,7 @@ impl Kaleido { "--disable-software-rasterizer", "--single-process", "--disable-gpu", - "--timeout 2000", + "--no-sandbox", ]) .stdin(Stdio::piped()) .stdout(Stdio::piped()) @@ -237,6 +237,13 @@ impl Kaleido { } } + let stderr = process.stderr.take().unwrap(); + let stderr_lines = BufReader::new(stderr).lines(); + for line in stderr_lines { + let line = line.unwrap(); + eprintln!("{}", line); + } + Ok(String::default()) } }