fixed windows test pipeline

This commit is contained in:
objz committed 2026-07-26 22:13:28 +02:00
1 parent 0d7903fc06
commit 868f3e5b9d
1 file changed
+10 -6
+10 -6
View File
@@ -4,7 +4,7 @@
// fixture layout in a tempdir, call the seam, and assert on the rendered // fixture layout in a tempdir, call the seam, and assert on the rendered
// LaunchInvocation. nothing here actually spawns a process. // LaunchInvocation. nothing here actually spawns a process.
use std::path::PathBuf; use std::path::{Path, PathBuf};
use chrono::Utc; use chrono::Utc;
use serde_json::json; use serde_json::json;
@@ -214,12 +214,16 @@ async fn vanilla_modern_builds_complete_invocation() {
.join("cache/minecraft/versions") .join("cache/minecraft/versions")
.join("1.20.1") .join("1.20.1")
.join("natives"); .join("natives");
assert!( let actual_natives = inv
inv.jvm_args .jvm_args
.iter() .iter()
.any(|a| a == &format!("-Djava.library.path={}", expected_natives.display())), .find_map(|arg| arg.strip_prefix("-Djava.library.path="))
.map(Path::new);
assert_eq!(
actual_natives,
Some(expected_natives.as_path()),
"jvm_args missing natives substitution: {:?}", "jvm_args missing natives substitution: {:?}",
inv.jvm_args inv.jvm_args,
); );
assert!( assert!(
inv.jvm_args inv.jvm_args