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:
parent
ebbb4c27d1
commit
a277131752
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ fn test_gamedata_extract() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_item_read() {
|
fn test_item_read() {
|
||||||
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
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(
|
let mut game_data = physis::gamedata::GameData::from_existing(
|
||||||
Platform::Win32,
|
Platform::Win32,
|
||||||
|
|
Loading…
Add table
Reference in a new issue