Skip to content

Commit 09f2dab

Browse files
committed
Added log file
1 parent 1feeb6e commit 09f2dab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ queue.process(async (job, done) => {
120120
job.data['context'] = 'Tests stalled after ~2 min';
121121
runTests.kill();
122122
done(new Error('Job stalled')) }, 5*60000);
123-
let args = ['-r', `runAllTests (""${job.data.sha}"",""${job.data.repo}"")`, '-wait', '-log', '-nosplash'];
123+
let args = ['-r', `runAllTests (""${job.data.sha}"",""${job.data.repo}"")`,
124+
'-wait', '-log', '-nosplash', '-logfile', 'matlab_tests.log'];
124125
runTests = cp.execFile('matlab', args, (error, stdout, stderr) => {
125126
clearTimeout(timer);
126127
if (error) { // Send error status

runAllTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function runAllTests(id, repo)
3434
% the sortByFixtures method to sort the suite.
3535
all_tests = [main_tests signals_tests alyx_tests];
3636
% If the repo under test is alyx, filter out irrelevent tests
37-
if strcmp(repo, 'alyx')
37+
if startsWith(repo, 'alyx', 'IgnoreCase', true)
3838
all_tests = all_tests(startsWith({all_tests.Name}, 'Alyx', 'IgnoreCase', true));
3939
end
4040

0 commit comments

Comments
 (0)