Skip to content

Commit

Permalink
kill unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Jul 10, 2015
1 parent 9155066 commit 99fbd41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Expand Up @@ -222,14 +222,6 @@ sub _matchPatterns {
}
}

sub _getOpenVZVmID {
return getFirstMatch(
file => '/proc/self/status',
pattern => qr/^envID:\s*(\d+)/,
@_
);
}

sub _getXenUUID {
return getFirstLine(
file => '/sys/hypervisor/uuid',
Expand Down
12 changes: 1 addition & 11 deletions t/tasks/inventory/virtualization/vmsystem.t
Expand Up @@ -9,17 +9,7 @@ use Test::NoWarnings;

use FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem;

my %tests = (
status_sample1 => 999
);

plan tests => (scalar keys %tests) + 2;

foreach my $test (keys %tests) {
my $file = "resources/virtualization/openvz/$test";
my $vmid = FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem::_getOpenVZVmID(file => $file);
cmp_deeply($vmid, $tests{$test}, $test);
}
plan tests => 2;

my $hardware = FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem::_getLibvirtLXC_UUID(
file => 'resources/linux/proc/1-environ.txt'
Expand Down

0 comments on commit 99fbd41

Please sign in to comment.