From 30102df930afdff1cc34f5faed937e29968270f7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 17 Jul 2019 10:40:03 -0700 Subject: [PATCH] Fix download_modularity_tests arg evaluation Evaluating an array in scalar context gives the length of the array, not its first value... Signed-off-by: Adam Williamson --- lib/utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index 5104cfbe..768115fc 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -647,7 +647,7 @@ sub check_desktop_clean { sub download_modularity_tests { # Download the modularity test script, place in the system and then # modify the access rights to make it executable. - my $whitelist = @_; + my ($whitelist) = @_; assert_script_run 'curl -o /root/test.py https://pagure.io/fedora-qa/modularity_testing_scripts/raw/master/f/modular_functions.py'; if ($whitelist eq 'whitelist') { assert_script_run 'curl -o /root/whitelist https://pagure.io/fedora-qa/modularity_testing_scripts/raw/master/f/whitelist';