summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-02-19 18:00:45 +0100
committerTails developers <amnesia@boum.org>2015-02-19 18:00:45 +0100
commit1698b2c92a83c9d4870a4bd86105c8e1320d9b5f (patch)
treea274cbbdb9c4861b667cc5b533feba03bcbac472
parent21ee90f26e146ef197547e23e3fded7be1394644 (diff)
Only save the pcap file when there were network leaks.
It was a mistake to have it saved every time we check for leaks.
-rw-r--r--features/support/helpers/firewall_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/support/helpers/firewall_helper.rb b/features/support/helpers/firewall_helper.rb
index bcb8ca8..04e6853 100644
--- a/features/support/helpers/firewall_helper.rb
+++ b/features/support/helpers/firewall_helper.rb
@@ -110,8 +110,10 @@ class FirewallLeakCheck
if !@nonip_leaks.empty?
err += "Some non-IP packets were sent\n"
end
- save_pcap_file
- raise err if !err.empty?
+ if !err.empty?
+ save_pcap_file
+ raise err
+ end
end
end