mirror of
https://github.com/typst/typst
synced 2025-06-03 02:36:26 +08:00
Always run tests from workspace directory (#6307)
This commit is contained in:
parent
91cadbf307
commit
300a782451
@ -59,7 +59,9 @@ fn main() {
|
|||||||
fn setup() {
|
fn setup() {
|
||||||
// Make all paths relative to the workspace. That's nicer for IDEs when
|
// Make all paths relative to the workspace. That's nicer for IDEs when
|
||||||
// clicking on paths printed to the terminal.
|
// clicking on paths printed to the terminal.
|
||||||
std::env::set_current_dir("..").unwrap();
|
let workspace_dir =
|
||||||
|
Path::new(env!("CARGO_MANIFEST_DIR")).join(std::path::Component::ParentDir);
|
||||||
|
std::env::set_current_dir(workspace_dir).unwrap();
|
||||||
|
|
||||||
// Create the storage.
|
// Create the storage.
|
||||||
for ext in ["render", "html", "pdf", "svg"] {
|
for ext in ["render", "html", "pdf", "svg"] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user