mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-02 18:07:04 +00:00
test(settings): build the portable path with join, so Linux CI reads it
The expected path was written out as E:\Suite\ArtCraftLauncherData, which is one file name on Linux, so the test would have failed on the ubuntu-latest job the first time it ran. Joining the components gives the same check on both platforms.
This commit is contained in:
@@ -102,8 +102,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn a_portable_suite_keeps_its_settings_inside_itself() {
|
||||
let root = PathBuf::from("E:\\Suite\\ArtCraftLauncherData");
|
||||
assert_eq!(portable_settings(&root), PathBuf::from("E:\\Suite\\ArtCraftLauncherData\\data\\app.ron"));
|
||||
// Built with `join` so the test reads the same on Windows and on Linux CI.
|
||||
let root = PathBuf::from("Suite").join("ArtCraftLauncherData");
|
||||
assert_eq!(portable_settings(&root), root.join("data").join("app.ron"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user