To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit e9025ca2 authored by Reto Da Forno's avatar Reto Da Forno

fallback to operating system 'other' if unknown OS is specified

parent 8eeb6f9b
......@@ -1011,7 +1011,9 @@ function update_add_test($xml_config, &$errors, $existing_test_id = NULL, $abort
foreach($available_platforms as $key => $platform)
if (strcasecmp($platform[0]['name'], trim($im->platform)) == 0)
$im_cpy['platform'] = $key;
$im_os = isset($im->os) ? trim($im->os) : 'other';
if(!isset($im->os) || !in_array($im->os, $available_os)) {
$im_os = 'other';
foreach($available_os as $key => $os) {
if (strcasecmp($os, $im_os) == 0) {
$im_cpy['os'] = $key;
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