]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Add an absolute path to iptables to make system tests pass
authorKen Barber <ken@bob.sh>
Fri, 12 Apr 2013 14:32:32 +0000 (15:32 +0100)
committerKen Barber <ken@bob.sh>
Fri, 12 Apr 2013 14:32:32 +0000 (15:32 +0100)
Signed-off-by: Ken Barber <ken@bob.sh>
spec/system/basic_spec.rb

index 71309c4130d898cc61f9c44f868b865b908c9077..e7f8a8557066481f788344b814d93059c3d0a844 100644 (file)
@@ -7,7 +7,7 @@ describe "basic tests:" do
   # It checks that the flush command returns with no errors.
   def iptables_flush_all_tables
     ['filter', 'nat', 'mangle', 'raw'].each do |t|
-      system_run("iptables -t #{t} -F") do |r|
+      system_run("/sbin/iptables -t #{t} -F") do |r|
         r[:exit_code].should == 0
         r[:stderr].should == ''
       end