Fix tests... (#8080)

Don't exit when we can't add a device, fail :)
This commit is contained in:
Tony Murray
2018-01-12 15:24:12 -06:00
committed by GitHub
parent 8ec6f138bc
commit 44c1ee5f43
7 changed files with 16 additions and 12 deletions

View File

@@ -398,8 +398,8 @@ class ModuleTestHelper
$device_id = addHost($snmpsim->getIp(), 'v2c', $snmpsim->getPort());
$this->qPrint("Added device: $device_id\n");
} catch (\Exception $e) {
echo $e->getMessage() . PHP_EOL;
exit;
echo $this->file_name . ': ' . $e->getMessage() . PHP_EOL;
return null;
}
// Populate the device variable