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 <awilliam@redhat.com>
This commit is contained in:
parent
25f408ea7e
commit
30102df930
@ -647,7 +647,7 @@ sub check_desktop_clean {
|
|||||||
sub download_modularity_tests {
|
sub download_modularity_tests {
|
||||||
# Download the modularity test script, place in the system and then
|
# Download the modularity test script, place in the system and then
|
||||||
# modify the access rights to make it executable.
|
# 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';
|
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') {
|
if ($whitelist eq 'whitelist') {
|
||||||
assert_script_run 'curl -o /root/whitelist https://pagure.io/fedora-qa/modularity_testing_scripts/raw/master/f/whitelist';
|
assert_script_run 'curl -o /root/whitelist https://pagure.io/fedora-qa/modularity_testing_scripts/raw/master/f/whitelist';
|
||||||
|
Loading…
Reference in New Issue
Block a user