1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

Small fixes.

This commit is contained in:
Lukáš Růžička 2021-07-28 09:02:02 +02:00
parent e0d9409c74
commit 6da1dbcdb9
2 changed files with 26 additions and 33 deletions

View File

@ -75,7 +75,7 @@ it also means that `B` conflicts `A` even if not shown in the table).
| `TEST_UPDATES` | boolean | `false`/not set | set to indicate that this test checks updates.img loading, so we should check for the expected effect of the updates image used for this testing | | `TEST_UPDATES` | boolean | `false`/not set | set to indicate that this test checks updates.img loading, so we should check for the expected effect of the updates image used for this testing |
| `PREINSTALL` | string | not set | nothing | If set, specified module will be loaded before reboot and install; module supposed to be starting as rescue mode | | `PREINSTALL` | string | not set | nothing | If set, specified module will be loaded before reboot and install; module supposed to be starting as rescue mode |
| `POSTINSTALL` | string | not set | `POSTINSTALL_PATH` | If set, `tests/(value)_postinstall.pm` will be loaded after install, boot, login, and other postinstall tests | `POSTINSTALL` | string | not set | `POSTINSTALL_PATH` | If set, `tests/(value)_postinstall.pm` will be loaded after install, boot, login, and other postinstall tests
| `POSTINSTALL_PATH` | boolean | not set | `POSTINSTALL` | If set, `all tests on `TESTPATH` location will be loaded as postinstall tests after install, boot, login, and other postinstall tests | | `POSTINSTALL_PATH` | boolean | not set | `POSTINSTALL` | If set, `all tests on this location will be loaded as postinstall tests after install, boot, login, and other postinstall tests |
| `UEFI` | boolean | `false`/not set | nothing | whether to use UEFI, this variable isn't usually set in test suites but in machine definition | | `UEFI` | boolean | `false`/not set | nothing | whether to use UEFI, this variable isn't usually set in test suites but in machine definition |
| `ANACONDA_TEXT` | boolean | `false`/not set | all | when specified, anaconda will run in text mode | | `ANACONDA_TEXT` | boolean | `false`/not set | all | when specified, anaconda will run in text mode |
| `HELPCHECK` | boolean | `false`/not set | all | when specified, Anaconda Help will be called on each available pane. | | `HELPCHECK` | boolean | `false`/not set | all | when specified, Anaconda Help will be called on each available pane. |
@ -86,7 +86,6 @@ it also means that `B` conflicts `A` even if not shown in the table).
| `BUGZILLA_LOGIN` | string | not set | used with `_SECRET_BUGZILLA_PASSWORD` | This is used to store a login string which does not get exposed in log files. | | `BUGZILLA_LOGIN` | string | not set | used with `_SECRET_BUGZILLA_PASSWORD` | This is used to store a login string which does not get exposed in log files. |
| `_SECRET_BUGZILLA_PASSWORD` | string | not set | used with `BUGZILLA_LOGIN` | This is used to store a password string which does not get exposed in log files. | | `_SECRET_BUGZILLA_PASSWORD` | string | not set | used with `BUGZILLA_LOGIN` | This is used to store a password string which does not get exposed in log files. |
| `_SECRET_BUGZILLA_APIKEY` | string | not set | used with other secrets | This is used to store an API key which does not get exposed in log files. | | `_SECRET_BUGZILLA_APIKEY` | string | not set | used with other secrets | This is used to store an API key which does not get exposed in log files. |
| `TESTPATH` | string | not set | can be used to set path for postinstall tests, if they are placed in subdirectories
Run variables Run variables
------------- -------------

48
main.pm
View File

@ -323,33 +323,27 @@ sub load_postinstall_tests() {
autotest::loadtest "tests/_console_avc_crash.pm"; autotest::loadtest "tests/_console_avc_crash.pm";
} }
# generic post-install test will load if POSTINSTALL or POSTINSTALL_PATH # generic post-install test load
# are set. If POSTINSTALL is set, then only tests provided in that list will if (get_var("POSTINSTALL")) {
# be run, with POSTINSTALL_PATH all tests on that path will be run without any my @pis = split(/ /, get_var("POSTINSTALL"));
# possibility to limit them. # For each test in POSTINSTALL, load the test
# These variables are mutually exclusive. foreach my $pi (@pis) {
# If POSTINSTALL is set, it means that we want to run selected tests, autotest::loadtest "tests/${pi}.pm";
# specified in the POSTINSTALL variable. }
if (get_var("POSTINSTALL")) { }
my @pis = split(/ /, get_var("POSTINSTALL")); # If POSTINSTALL_PATH is set, we will load all available test files from that location
# For each test in POSTINSTALL, load the test # as postinstall tests.
foreach my $pi (@pis) { elsif (get_var("POSTINSTALL_PATH")) {
autotest::loadtest "tests/${pi}.pm"; my $casedir = get_var("CASEDIR");
} my $path = get_var("POSTINSTALL_PATH");
} # Read the list of files on that path,
# If POSTINSTALL_PATH is set, we will load all available test files from that location my @pis = glob "${casedir}/${path}/*.pm";
# as postinstall tests. # and load each of them.
elsif (get_var("POSTINSTALL_PATH")) { foreach my $pi (@pis) {
my $casedir = get_var("CASEDIR"); $pi = basename($pi);
my $path = get_var("POSTINSTALL_PATH"); autotest::loadtest "$path/$pi";
# Read the list of files on that path, }
my @pis = glob "${casedir}/${path}/*.pm"; }
# and load each of them.
foreach my $pi (@pis) {
$pi = basename($pi);
autotest::loadtest "$path/$pi";
}
}
# load the ADVISORY / KOJITASK post-install test - this records which # load the ADVISORY / KOJITASK post-install test - this records which
# update or task packages were actually installed during the test. Don't # update or task packages were actually installed during the test. Don't