1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-05 18:27:46 +00:00

Allow skipping certain retail tests with FFXIV_IS_BENCHMARK env var

Benchmarks don't have item names, so there's no point in testing that
because it will always fail.
This commit is contained in:
Joshua Goins 2025-04-28 22:05:15 -04:00
parent ebbb4c27d1
commit a277131752

View file

@ -26,6 +26,11 @@ fn test_gamedata_extract() {
#[test]
fn test_item_read() {
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
let is_benchmark = env::var("FFXIV_IS_BENCHMARK").unwrap_or_default();
if is_benchmark == "1" {
// Skip this test because this benchmarks don't have item names.
return;
}
let mut game_data = physis::gamedata::GameData::from_existing(
Platform::Win32,