Skip to content
Snippets Groups Projects
Commit ae883693 authored by kaustubh-d's avatar kaustubh-d
Browse files

dpkg uses arch ppc64el for little endian.

parent 07483855
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -406,6 +406,8 @@ module Omnibus
else
'armv6l'
end
when '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