1
0
Fork 0

options.test is always there - need to check whether its defined.

This commit is contained in:
Willi Goesgens 2015-03-23 18:45:46 +01:00
parent 486d86e0cb
commit ac141a4e14
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ function printUsage () {
}
function filterTestcaseByOptions (testname, options, whichFilter) {
if (options.hasOwnProperty('test')) {
if (options.hasOwnProperty('test') && (typeof(options.test) !== 'undefined')) {
whichFilter.filter = "testcase";
return testname === options.test;
}