set kernel, distro, and version for Mac OS

This commit is contained in:
Andrew Bauer 2016-02-12 17:38:00 -06:00
parent 3c48d81edb
commit 24838a91c9
1 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,9 @@ sub getDistro {
$version = runSysCmd("uname -r");
} elsif ( $test =~ /Darwin/ ) {
Debug("Mac OS distro detected.");
$kernel = runSysCmd("uname -v");
$distro = runSysCmd("uname");
$version = runSysCmd("uname -r");
} elsif ( $test =~ /SunOS|Solaris/ ) {
Debug("Sun Solaris detected.");
$kernel = runSysCmd("uname -v");