action #162866
Updated by mkittler 10 months ago
## Observation Compile test fails ## Steps to reproduce Reproducer From within the openQA checkout ``` # podman run --rm -ti -v .:/work -w /work opensuse/leap:15.6 bash -c 'zypper in -y openQA-devel &>/dev/null && perl -I lib -c t/basic.t' t/basic.t syntax OK ``` ``` podman run --rm -ti -v .:/work -w /work opensuse/tumbleweed:latest bash -c 'zypper in -y openQA-devel &>/dev/null && perl -I lib -c t/basic.t' ``` ## Suggestions * Read comments about upstream changes that triggered that new behaviour * The problem is triggered by code in t/lib/OpenQA/Test/Database.pm doing `plan skip_all => 'set TEST_PG to e.g. "DBI:Pg:dbname=test" to enable this test' unless $ENV{TEST_PG};` which effectively exits from BEGIN so reconsider that * Use `use_ok 'OpenQA::Test::Database'` or `require OpenQA::Test::Database` instead of `use OpenQA::Test::Database`. Where? one line in t/lib/OpenQA/SeleniumTest.pm already does that, `git grep 'use OpenQA::Test::Database'` shows other uses