Skip to content

Commit

Permalink
trim whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: RaviDuddela <[email protected]>
  • Loading branch information
raviduddela committed Jul 15, 2022
1 parent 08249ce commit 590cc7b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions automake/controls/automake_works.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
title 'Tests to confirm automake works as expected'

plan_origin = ENV['HAB_ORIGIN']
plan_name = input('plan_name', value: 'automake')

control 'core-plans-automake-works' do
impact 1.0
title 'Ensure automake works as expected'
Expand All @@ -11,14 +9,12 @@
(1) its installation directory exists
(2) binaries return the expected version
'

plan_installation_directory = command("hab pkg path #{plan_origin}/#{plan_name}")
describe plan_installation_directory do
its('exit_status') { should eq 0 }
its('stdout') { should_not be_empty }
#its('stderr') { should be_empty }
end

automake_full_path = File.join(plan_installation_directory.stdout.strip, "bin/automake")
plan_pkg_version = plan_installation_directory.stdout.split("/")[5]
describe command("#{automake_full_path} --version") do
Expand All @@ -27,7 +23,6 @@
its('stdout') { should match /automake \(GNU automake\) #{plan_pkg_version}/ }
#its('stderr') { should be_empty }
end

aclocal_full_path = File.join(plan_installation_directory.stdout.strip, "bin/aclocal")
describe command("#{aclocal_full_path} --version") do
its('exit_status') { should eq 0 }
Expand Down

0 comments on commit 590cc7b

Please sign in to comment.