Skip to content

Commit

Permalink
Added support for wappalyzerPR
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed May 7, 2024
1 parent a7c9fe6 commit 4ebdea0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@
if (array_key_exists('tester', $_REQUEST) && preg_match('/[a-zA-Z0-9\-_]+/', $_REQUEST['tester'])) {
$test['affinity'] = 'Tester' . $_REQUEST['tester'];
}
if (isset($_REQUEST['wappalyzerPR'])) {
$pr = intval($_REQUEST['wappalyzerPR']);
if ($pr) {
$test['wappalyzerPR'] = $pr;
}
}

// custom options
$test['cmdLine'] = '';
Expand Down Expand Up @@ -2916,6 +2922,9 @@ function CreateTest(&$test, $url, $batch = 0, $batch_locations = 0)
if (isset($test['axe']) && $test['axe']) {
$job['axe'] = 1;
}
if (isset($test['wappalyzerPR'])) {
$job['wappalyzerPR'] = $test['wappalyzerPR'];
}
if (isset($test['mobile']) && $test['mobile']) {
$job['mobile'] = 1;
}
Expand Down Expand Up @@ -3033,6 +3042,9 @@ function CreateTest(&$test, $url, $batch = 0, $batch_locations = 0)
if (isset($test['axe']) && $test['axe']) {
$job['axe'] = 1;
}
if (isset($test['wappalyzerPR'])) {
$job['wappalyzerPR'] = $test['wappalyzerPR'];
}
// Pass the WPT server hostname to the agent
$hostname = GetSetting('host');
if (isset($hostname) && is_string($hostname) && strlen($hostname)) {
Expand Down

0 comments on commit 4ebdea0

Please sign in to comment.