mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 10:48:30 +00:00
D'oh, move disable_firefox_studies up in utils
...so things that appear earlier in the file can use it. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
3b236c7a39
commit
8f0108176b
16
lib/utils.pm
16
lib/utils.pm
@ -304,6 +304,14 @@ sub menu_launch_type {
|
||||
send_key 'ret';
|
||||
}
|
||||
|
||||
sub disable_firefox_studies {
|
||||
# create a config file that disables Firefox's dumb 'shield
|
||||
# studies' so they don't break tests:
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1529626
|
||||
assert_script_run 'mkdir -p $(rpm --eval %_libdir)/firefox/distribution';
|
||||
assert_script_run 'printf \'{"policies": {"DisableFirefoxStudies": true}}\' > $(rpm --eval %_libdir)/firefox/distribution/distribution.ini';
|
||||
}
|
||||
|
||||
sub start_cockpit {
|
||||
# Starting from a console, get to a browser with Cockpit (running
|
||||
# on localhost) shown. If $login is truth-y, also log in. Assumes
|
||||
@ -764,11 +772,3 @@ sub advisory_check_nonmatching_packages {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub disable_firefox_studies {
|
||||
# create a config file that disables Firefox's dumb 'shield
|
||||
# studies' so they don't break tests:
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1529626
|
||||
assert_script_run 'mkdir -p $(rpm --eval %_libdir)/firefox/distribution';
|
||||
assert_script_run 'printf \'{"policies": {"DisableFirefoxStudies": true}}\' > $(rpm --eval %_libdir)/firefox/distribution/distribution.ini';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user