minor changes
This commit is contained in:
parent
34e4f4d9af
commit
2a1392fffb
1 changed files with 181 additions and 169 deletions
|
@ -106,23 +106,30 @@ foreach ($domains as $key => $domain)
|
|||
// Add as it is
|
||||
$results[$domain] = $result;
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
else
|
||||
echo "Handler for domain $domain gives same results as before ...\n";
|
||||
}
|
||||
}
|
||||
|
||||
save_results();
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
function save_results()
|
||||
{
|
||||
global $results;
|
||||
|
||||
$fp = fopen('testsuite.txt','wt');
|
||||
fputs($fp, serialize($results));
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
function get_answer($question)
|
||||
{
|
||||
echo "\n------ $question ? (y/n/a) ";
|
||||
echo "\n------ $question ? (y/n/a/c) ";
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
@ -130,6 +137,11 @@ while (true)
|
|||
|
||||
if ($res=='a') exit();
|
||||
|
||||
if ($res=='c')
|
||||
{
|
||||
save_results();
|
||||
exit();
|
||||
}
|
||||
if ($res=='y') return true;
|
||||
if ($res=='n') return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue