From: Ken Barber Date: Fri, 12 Apr 2013 14:32:32 +0000 (+0100) Subject: Add an absolute path to iptables to make system tests pass X-Git-Tag: 0.3.0~12^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3cc023d4e6a95722eacf570a1487052833ccb829;p=puppet-modules%2Fpuppetlabs-firewall.git Add an absolute path to iptables to make system tests pass Signed-off-by: Ken Barber --- diff --git a/spec/system/basic_spec.rb b/spec/system/basic_spec.rb index 71309c4..e7f8a85 100644 --- a/spec/system/basic_spec.rb +++ b/spec/system/basic_spec.rb @@ -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