1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Avoid uninitialized value warnings in main.pm

If LANGUAGE isn't specified we wind up using undefined in string
eq, which perl warns about. So let's avoid that by falling back
to "".

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-05-26 14:51:20 -07:00
parent 56b443176a
commit e9de5f28a3

View File

@ -252,7 +252,7 @@ sub _load_early_postinstall_tests {
_load_instance("tests/_graphical_input", $instance);
}
if (get_var("LANGUAGE") eq "japanese" || get_var("LANGUAGE") eq "arabic") {
if (get_var("LANGUAGE", "") eq "japanese" || get_var("LANGUAGE", "") eq "arabic") {
_load_instance("tests/check_default_fonts", $instance);
}