From a2771317520594673852c07cb5272083cb287057 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 28 Apr 2025 22:05:15 -0400 Subject: [PATCH] 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. --- tests/retail_test.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/retail_test.rs b/tests/retail_test.rs index f0ebd5e..12e579f 100755 --- a/tests/retail_test.rs +++ b/tests/retail_test.rs @@ -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,