# Skipping those from which we know they would fail.
describe 'bytecode property', unless: (os[:family] == 'redhat' && os[:release][0] <= '6') ||
(os[:family] == 'sles' && os[:release][0..1] <= '11') ||
- (get_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
+ (fetch_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
(os[:family] == 'ubuntu') do
describe 'bytecode' do
context '4,48 0 0 9,21 0 1 6,6 0 0 1,6 0 0 0' do
run_shell("sed -i '/mesg n || true/c\\test -t 0 && mesg n || true' ~/.profile")
end
-def get_os_name # rubocop:disable Style/AccessorMethodName: Do not prefix reader method names with get_
+def fetch_os_name
@facter_os_name ||= run_shell('facter os.name').stdout.delete("\n").downcase
end