]> gitweb.michael.orlitzky.com - octave.git/blobdiff - run-tests.m
Fix loop count parsing.
[octave.git] / run-tests.m
index 001e7409d00004d7cdc85a2e676cb29c9aa8e2f8..9d0e7fa03ba48af8a5d619e4553e8f15077684b6 100755 (executable)
@@ -17,7 +17,7 @@ test_files = glob('tests/*.m');
 loop_count = 1;
 arg_list = argv();
 if (length(arg_list) > 0)
 loop_count = 1;
 arg_list = argv();
 if (length(arg_list) > 0)
-  loop_count = arg_list{1};
+  loop_count = str2num(arg_list{1});
 end
 
 ## Source every file that matches the glob above.
 end
 
 ## Source every file that matches the glob above.