Skip to content
Snippets Groups Projects
Commit edb06414 authored by Seth Chisamore's avatar Seth Chisamore
Browse files

Merge pull request #451 from ClogenyTechnologies/test-kd/ubuntuppc64el

dpkg uses arch name ppc64el (instead of ppc64le) for little endian.
parents 07483855 772a7972
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -406,6 +406,11 @@ module Omnibus
else
'armv6l'
end
when 'ppc64le'
# Debian prefers to use ppc64el for little endian architecture name
# where as others like gnutools/rhel use ppc64le( note the last 2 chars)
# see http://linux.debian.ports.powerpc.narkive.com/8eeWSBtZ/switching-ppc64el-port-name-to-ppc64le
'ppc64el' #dpkg --print-architecture = ppc64el
else
Ohai['kernel']['machine']
end
Loading
Loading
Loading
Loading
@@ -344,6 +344,18 @@ module Omnibus
end
end
 
context 'when ppc64le' do
before do
stub_ohai(platform: 'ubuntu', version: '14.04') do |data|
data['kernel']['machine'] = 'ppc64le'
end
end
it 'returns ppc64el' do
expect(subject.safe_architecture).to eq('ppc64el')
end
end
context 'on Raspbian' do
before do
# There's no Raspbian in Fauxhai :(
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment