test: (fixes #2949) Exit test.py if incorrect fullness option used
This commit is contained in:
@@ -955,7 +955,11 @@ TestRunnerImpl::Run (int argc, char *argv[])
|
||||
fullness = arg + strlen("--fullness=");
|
||||
|
||||
// Set the maximum test length allowed.
|
||||
if (fullness == "EXTENSIVE")
|
||||
if (fullness == "QUICK")
|
||||
{
|
||||
maximumTestDuration = TestCase::QUICK;
|
||||
}
|
||||
else if (fullness == "EXTENSIVE")
|
||||
{
|
||||
maximumTestDuration = TestCase::EXTENSIVE;
|
||||
}
|
||||
@@ -965,7 +969,9 @@ TestRunnerImpl::Run (int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
maximumTestDuration = TestCase::QUICK;
|
||||
// Wrong fullness option
|
||||
PrintHelp (progname);
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user