From f166d186a6019edc94b4868ebe606a7a58a421e8 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Tue, 5 Sep 2023 19:52:26 -0400 Subject: [PATCH] fix test octave --- tests/tests_utils/test_create_scans_tsv.m | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/tests_utils/test_create_scans_tsv.m b/tests/tests_utils/test_create_scans_tsv.m index 1424cf84..1227b18f 100644 --- a/tests/tests_utils/test_create_scans_tsv.m +++ b/tests/tests_utils/test_create_scans_tsv.m @@ -11,8 +11,11 @@ function test_create_scans_tsv_basic_no_session() source_ds = fullfile(get_test_data_dir(), 'asl001'); tmp_path = temp_dir(); copyfile(source_ds, tmp_path); - - bids_path = fullfile(tmp_path); + if bids.internal.is_octave() + bids_path = fullfile(tmp_path, 'asl001'); + else + bids_path = tmp_path; + end validate_dataset(bids_path); @@ -32,8 +35,11 @@ function test_create_scans_tsv_basic() source_ds = fullfile(get_test_data_dir(), 'ds006'); tmp_path = temp_dir(); copyfile(source_ds, tmp_path); - - bids_path = fullfile(tmp_path); + if bids.internal.is_octave() + bids_path = fullfile(tmp_path, 'ds006'); + else + bids_path = tmp_path; + end validate_dataset(bids_path);