Skip to content

Commit

Permalink
fix tests for octave
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Apr 7, 2024
1 parent 94e6951 commit 13d9797
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/tests_utils/test_create_participants_tsv.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function test_create_participants_tsv_basic()

copyfile(fullfile(get_test_data_dir(), 'asl001'), bids_path);

if bids.internal.is_octave
bids_path = fullfile(bids_path, 'asl001');
end

validate_dataset(bids_path);

output_filename = bids.util.create_participants_tsv(bids_path, 'verbose', false);
Expand All @@ -33,6 +37,10 @@ function test_create_participants_tsv_already_exist()

copyfile(fullfile(get_test_data_dir(), 'ds210'), bids_path);

if bids.internal.is_octave
bids_path = fullfile(bids_path, 'ds210');
end

output_filename = bids.util.create_participants_tsv(bids_path);

validate_dataset(bids_path);
Expand Down
8 changes: 8 additions & 0 deletions tests/tests_utils/test_create_sessions_tsv.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function test_create_sessions_tsv_no_session()

copyfile(fullfile(get_test_data_dir(), 'ds210'), bids_path);

if bids.internal.is_octave
bids_path = fullfile(bids_path, 'ds210');
end

validate_dataset(bids_path);

output_filenames = bids.util.create_sessions_tsv(bids_path, 'verbose', false);
Expand All @@ -33,6 +37,10 @@ function test_create_sessions_tsv_basic()

copyfile(fullfile(get_test_data_dir(), 'ieeg_epilepsy'), bids_path);

if bids.internal.is_octave
bids_path = fullfile(bids_path, 'ieeg_epilepsy');
end

validate_dataset(bids_path);

output_filenames = bids.util.create_sessions_tsv(bids_path, 'verbose', false);
Expand Down

0 comments on commit 13d9797

Please sign in to comment.