Include test data in tests os filter (#9387)

This commit is contained in:
Tony Murray
2018-10-25 13:44:17 -05:00
committed by GitHub
parent a31f477290
commit be642f0173

View File

@@ -188,6 +188,9 @@ function os_from_file($file)
}
return os_from_php(str_replace('-', '_', $osname));
}
} elseif (starts_with($file, ['tests/snmpsim/', 'tests/data/'])) {
list($os,) = explode('_', basename(basename($file, '.json'), '.snmprec'), 2);
return $os;
}
return null;