Skip to content

Commit

Permalink
fix test octave
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Sep 5, 2023
1 parent ca63eaa commit f166d18
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/tests_utils/test_create_scans_tsv.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit f166d18

Please sign in to comment.