1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00
Commit Graph

304 Commits

Author SHA1 Message Date
Lukas Ruzicka
77922ceac6 Update upgrade test to match new conditions. 2018-06-29 11:43:41 +02:00
Lukas Ruzicka
ca87523a5c Adapt for upgrade test. 2018-06-29 11:42:11 +02:00
Lukas Ruzicka
6d5d9e1a63 Discard display switching 2018-06-29 11:02:52 +02:00
Lukas Ruzicka
75f2bd61e7 Use function to run package tool. 2018-06-29 11:02:04 +02:00
Lukas Ruzicka
e2fbefde6e Repair needle calling. 2018-06-29 10:36:26 +02:00
Lukas Ruzicka
13b1f40c3b try to fix the refresh. 2018-06-28 17:35:41 +02:00
Lukas Ruzicka
988deea680 try to fix the refresh. 2018-06-28 17:13:27 +02:00
Lukas Ruzicka
65c62c63d6 try to fix the refresh. 2018-06-28 17:08:27 +02:00
Lukas Ruzicka
fe1cb9f9d6 Add screen assertion. 2018-06-28 17:05:41 +02:00
Lukas Ruzicka
e55fa809b9 Fix terminal work and Gnome Software exec. 2018-06-28 16:42:33 +02:00
Lukas Ruzicka
b700bbdac4 Fix the script caller. 2018-06-28 16:14:53 +02:00
Lukas Ruzicka
22ad9fbc07 Fix the script caller. 2018-06-28 16:02:49 +02:00
Lukas Ruzicka
37524c0e2b Fix syntax. 2018-06-28 15:55:13 +02:00
Lukas Ruzicka
ef0e6ab593 Try to refresh package db. 2018-06-28 15:50:24 +02:00
Lukas Ruzicka
cac403544a Try to refresh package db. 2018-06-28 15:49:14 +02:00
Lukas Ruzicka
6b683362bd Fix the waiting. 2018-06-28 15:42:02 +02:00
Lukas Ruzicka
500835c492 Fix wait times. 2018-06-28 15:03:01 +02:00
Lukas Ruzicka
0f715ce1f0 Try different sleep. 2018-06-28 14:34:40 +02:00
Lukas Ruzicka
9657ca9ebe Make the test return to graphics. 2018-06-28 14:26:08 +02:00
Lukas Ruzicka
abd22b996e Change sleep time. 2018-06-28 14:17:01 +02:00
Lukas Ruzicka
6d3dc64f6d Update tests. 2018-06-28 14:05:56 +02:00
Lukas Ruzicka
350ab09ee5 Added checks and asserts. 2018-06-28 13:11:46 +02:00
Lukas Ruzicka
502ec3d945 Branch out the test based on update test. 2018-06-28 11:34:03 +02:00
Lukas Ruzicka
97eecbb1b6 Make longer time out. 2018-06-27 14:59:22 +02:00
Lukas Ruzicka
320370866d Run Gnome Software 2018-06-27 13:11:13 +02:00
Lukas Ruzicka
9cda308488 Add needle to assert logged in system. 2018-06-27 13:04:55 +02:00
Lukas Ruzicka
4e54961509 Add login into system. 2018-06-27 12:42:15 +02:00
Lukas Ruzicka
e402d5d819 Add needles to assert. 2018-06-27 12:35:39 +02:00
Lukas Ruzicka
796455e205 Add login into system. 2018-06-27 12:11:34 +02:00
Lukas Ruzicka
43596423ee Add login into system. 2018-06-27 11:55:59 +02:00
Lukas Ruzicka
80aeb39b33 Add login into system. 2018-06-27 11:50:37 +02:00
Lukas Ruzicka
1c1da2590c Add login into system. 2018-06-27 11:47:33 +02:00
Lukas Ruzicka
0931b2270a Try another screen. 2018-06-27 10:51:33 +02:00
Lukas Ruzicka
cdd9b3d528 Add checker. 2018-06-27 10:44:56 +02:00
Lukas Ruzicka
57c0a1a2a3 Fix syntax. 2018-06-27 10:38:45 +02:00
Lukas Ruzicka
f610617fc6 Add login line. 2018-06-27 10:08:51 +02:00
Lukas Ruzicka
efa70c86fb Clean dnf stuff. 2018-06-27 09:49:09 +02:00
Lukas Ruzicka
25b0567558 Fork the test. 2018-06-25 16:28:50 +02:00
Adam Williamson
faef957bac Revert workaround for RHBZ#1553935 now it's fixed
We don't need this any more, so let's remove the complication.
2018-06-18 11:02:08 -07:00
Adam Williamson
6324db0b87 Fix some minor syntax errors in previous commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-06-13 10:11:53 -07:00
Lukas Ruzicka
8897fe45a6 Add test for Arabic installation (revisited). 2018-06-13 11:56:26 +02:00
Adam Williamson
bd1b951f71 Bump a magic sleep a bit
Seems we need to wait a bit longer for this stupid transition
to happen on aarch64...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-06-11 15:59:44 -07:00
Adam Williamson
06fbeca281 Avoid unconditional wait for Timbuktu screen in _boot_to_anaconda
The way this currently works, the test unconditionally waits 60
seconds for the "Timbuktu screen" (the warning dialog shown on
pre-release images) to appear when anaconda is starting up, even
if it's testing an image where it doesn't show up. Now we test
Atomic nightlies and live respins and stuff this happens quite a
lot, so let's avoid it. This way if the hub appears during those
60 seconds we'll spot it right away and continue, otherwise we
behave the same as before.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-24 14:18:21 -07:00
Adam Williamson
05c9f4fbcd Make sure all check_screen calls have explicit timeout
Upstream is gonna change the default from 30 to 0, it seems:
https://github.com/os-autoinst/os-autoinst/pull/965
so let's go ahead and change these two cases where we have no
explicit timeout to have one.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-24 14:17:24 -07:00
Adam Williamson
33ac181955 Use mirrorlist instead of baseurl for updates tests
The reason we have all this horrible code to use the commented-
out baseurl lines in the repo files instead of the metalinks
that are usually used is a timing issue with the metalink
system. As a protection against stale mirrors, the metalink
system sends the package manager a list of mirrors *and a list
of recent checksums for the repo metadata*. The package manager
goes out and gets the metadata from the first mirror on the
list, then checksums it; if the checksum isn't on the list of
checksums it got from mirrormanager, it assumes that means the
mirror is stale, and tries the next on the list instead.

The problem is that MM's list of checksums is currently only
updated once an hour (by a cron job). So we kept running into
a problem where, when a test ran just after one of the repos
had been regenerated, the infra mirror it's supposed to use
would be rejected because the checksum wasn't on the list - but
not because the mirror was stale, but because it was too fresh,
it had got the new packages and metadata but mirrormanager's
list of checksums hadn't been updated to include the checksum
for the latest metadata.

All this baseurl munging code was getting ridiculous, though,
what with the tests getting more complicated and errors showing
up in the actual repo files and stuff. It occurred to me that
instead of using the baseurl we can just use the 'mirrorlist'
system instead of 'metalink'. mirrorlist is the dumber, older
system which just provides the package manager a list of mirrors
and nothing else - the whole stale-mirror-detection-checksum
thing does not happen with mirrorlists, the package manager just
tries all the mirrors in order and uses the first that works.
And happily, it's very easy to convert the metalink URLs into
mirrorlist URLs, and it saves all that faffing around trying to
fix up baseurls.

Also, adjust upgrade_boot to do the s/metalink/mirrorlist/
substitution, so upgrade tests don't run into the timing issue
in the steps before the main repo_setup run is done by
upgrade_run, and adjust repo_setup_compose to sub this line out
later.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-18 16:41:13 -07:00
Adam Williamson
8754611eef Extend some boot timeouts in upgrade tests
Sometimes rebooting during upgrade tests seems to take longer
than these timeouts allow, so let's bump them a bit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-11 09:02:21 -07:00
Adam Williamson
fdaa4783e7 _check_install_source: handle 'added repo' and 'enabled repo'
The text changed from 'added repo' to 'enabled repo' in Rawhide
after F28, so let's handle both at least till F28 is EOL.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-07 15:50:47 -07:00
Adam Williamson
c3a511e052 support_server: workaround RHBZ#1554390 (breaks dnsmasq on F28)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-03 14:00:41 -07:00
Adam Williamson
0ab8c6bd3f Click on language select screen (RHBZ #1566066)
We've been seeing an odd case lately where the language select
screen is not foregrounded when it appears (so all text is
grey). It happens very occasionally on x86_64, but a lot on
ppc64. To work around this, let's add a needle that matches the
inactive screen, and click on the screen when it appears just
to make sure it's active.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-04-25 15:04:52 -07:00
Adam Williamson
70d3f0269c Of course, we have to actually auth *properly*...
...just clicking the button ain't gonna work. D'oh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-28 22:17:33 -07:00