Commit 44ad5cb1 authored by meus's avatar meus

fixing run.php to alert if testing with invalid group

parent 75f2364e
...@@ -430,9 +430,12 @@ if(isset($argv[0]) && $argv[0] == "coverage"){ ...@@ -430,9 +430,12 @@ if(isset($argv[0]) && $argv[0] == "coverage"){
$coverage = true; $coverage = true;
} }
if( ! empty($argv)){ if( ! empty($argv)) {
$testGroup = new GroupTest("Custom"); $testGroup = new GroupTest("Custom");
foreach($argv as $group){ foreach($argv as $group) {
if( ! isset($$group)) {
die($group . " is not a valid group of tests\n");
}
$testGroup->addTestCase($$group); $testGroup->addTestCase($$group);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment