File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ function runAllTests(id, repo)
55% TODO Possible for repo commit sha conflict
66% @body Technically two different repos can have the same commit hash, in
77% which case the db.json file should be restructured
8- if nargin == 1 ; repo = ' rigbox' ; end
8+ % v1.0.1
9+ if nargin < 2 ; repo = ' rigbox' ; end
10+ if nargin < 1 ; id = []; end
911try
1012 %% Initialize enviroment
1113 dbPath = ' C:\Users\Experiment\db.json' ;
@@ -54,6 +56,9 @@ function runAllTests(id, repo)
5456 assert(now - file .modDate(reportFile ) < 0.001 , ...
5557 ' Coverage file may not have been updated' )
5658
59+ % If no commit id set, simply exit the function
60+ if isempty(id ); return ; end
61+
5762 %% Diagnostics
5863 % Summarize the results of the tests and write results to the JSON file
5964 % located at dbPath
You can’t perform that action at this time.
0 commit comments