Skip to content

Commit

Permalink
perlcritic: Subroutine called with "&" sigil
Browse files Browse the repository at this point in the history
  • Loading branch information
jknphy committed Apr 9, 2019
1 parent 30e7b07 commit 01ebd22
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion data/s390x/TOOL_s390_ZIOMON/ziomon_basic.pl
Expand Up @@ -81,7 +81,7 @@ sub reset_and_show_dmesg
open my $fh, '>', "temp" or die $!;
print $fh `dmesg -c`;
close($fh);
&filter_repeated("temp", "<DMESG>|");
filter_repeated("temp", "<DMESG>|");
unlink "temp";
}
sub assert_warn
Expand Down
16 changes: 8 additions & 8 deletions lib/ipmi_backend_utils.pm
Expand Up @@ -211,9 +211,9 @@ sub set_pxe_efiboot {
my $installation_disk = "";

if ($root_prefix ne "/") {
$installation_disk = &get_installation_partition;
$installation_disk = get_installation_partition;
assert_script_run("cd /");
&mount_installation_disk("$installation_disk", "$root_prefix");
mount_installation_disk("$installation_disk", "$root_prefix");
}

my $wait_script = "30";
Expand Down Expand Up @@ -275,7 +275,7 @@ sub set_pxe_efiboot {
#cleanup mount
if ($root_prefix ne "/") {
assert_script_run("cd /");
&umount_installation_disk("$root_prefix");
umount_installation_disk("$root_prefix");
}
}

Expand All @@ -293,26 +293,26 @@ sub set_serial_console_on_vh {
#when mount point is not empty, needs to mount installation disk
if ($installation_disk eq "") {
#search for the real installation partition on the first disk, which is selected by yast in ipmi installation
$installation_disk = &get_installation_partition;
$installation_disk = get_installation_partition;
}
#mount partition
assert_script_run("cd /");
&mount_installation_disk("$installation_disk", "$mount_point");
mount_installation_disk("$installation_disk", "$mount_point");
$root_dir = $mount_point;
}
else {
$root_dir = "/";
}

#set up xen serial console
my $ipmi_console = &get_dom0_serialdev("$root_dir");
if (${virt_type} eq "xen" || ${virt_type} eq "kvm") { &setup_console_in_grub($ipmi_console, $root_dir, $virt_type); }
my $ipmi_console = get_dom0_serialdev("$root_dir");
if (${virt_type} eq "xen" || ${virt_type} eq "kvm") { setup_console_in_grub($ipmi_console, $root_dir, $virt_type); }
else { die "Host Hypervisor is not xen or kvm"; }

#cleanup mount
if ($mount_point ne "") {
assert_script_run("cd /");
&umount_installation_disk("$mount_point");
umount_installation_disk("$mount_point");
}

}
Expand Down
2 changes: 1 addition & 1 deletion tests/virt_autotest/guest_migration_dst.pm
Expand Up @@ -50,7 +50,7 @@ sub run {
$self->workaround_for_reverse_lock("SRC_TEST_DONE", $src_test_timeout);
script_run("xl dmesg > /tmp/xl-dmesg.log");
my $logs = "/var/log/libvirt /var/log/messages /var/log/xen /var/lib/xen/dump /tmp/xl-dmesg.log";
&virt_autotest_base::upload_virt_logs($logs, "guest-migration-dst-logs");
virt_autotest_base::upload_virt_logs($logs, "guest-migration-dst-logs");

#mark dst upload log done
mutex_create('DST_UPLOAD_LOG_DONE');
Expand Down
2 changes: 1 addition & 1 deletion tests/virt_autotest/guest_migration_src.pm
Expand Up @@ -100,7 +100,7 @@ sub run {

#display test result
my $cmd = "cd /tmp; zcat $upload_log_name.tar.gz | sed -n '/Executing check validation/,/[0-9]* fail [0-9]* succeed/p'";
my $guest_migrate_log_content = &script_output("$cmd");
my $guest_migrate_log_content = script_output("$cmd");
save_screenshot;

#upload junit log
Expand Down
4 changes: 2 additions & 2 deletions tests/virt_autotest/virt_utils.pm
Expand Up @@ -50,7 +50,7 @@ sub repl_repo_in_sourcefile {
if (get_var("REPO_0")) {
my $location = '';
if (!check_var('ARCH', 's390x')) {
$location = &virt_autotest_base::execute_script_run("", "perl /usr/share/qa/tools/location_detect_impl.pl", 60);
$location = virt_autotest_base::execute_script_run("", "perl /usr/share/qa/tools/location_detect_impl.pl", 60);
$location =~ s/[\r\n]+$//;
}
else {
Expand Down Expand Up @@ -131,7 +131,7 @@ sub repl_guest_autoyast_addon_with_daily_build_module {
my $version = get_version_for_daily_build_guest;
$version =~ s/-/\//;
my $autoyast_root_dir = "/usr/share/qa/virtautolib/data/autoinstallation/sles/" . $version . "/";
my $file_list = &script_output("find $autoyast_root_dir -type f");
my $file_list = script_output("find $autoyast_root_dir -type f");
repl_addon_with_daily_build_module_in_files("$file_list");
}

Expand Down
2 changes: 1 addition & 1 deletion tests/virt_autotest/virt_v2v_src.pm
Expand Up @@ -34,7 +34,7 @@ sub run {
wait_for_children;

script_run("xl dmesg > /tmp/xl-dmesg.log");
&virt_autotest_base::upload_virt_logs("/var/log/libvirt /var/log/messages /var/log/xen /var/lib/xen/dump /tmp/xl-dmesg.log", "virt-v2v-xen-src-logs");
virt_autotest_base::upload_virt_logs("/var/log/libvirt /var/log/messages /var/log/xen /var/lib/xen/dump /tmp/xl-dmesg.log", "virt-v2v-xen-src-logs");
}

1;

0 comments on commit 01ebd22

Please sign in to comment.