diff options
author | Philip Hands <phil@hands.com> | 2016-03-14 15:36:16 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-04-28 21:52:10 +0200 |
commit | da080c472fc415b0ce918f4dd4a1ab143bb1bca4 (patch) | |
tree | bf63179f32f0eda0c2d5796e3e31c18c3c1185cf /features/step_definitions/dhcp.rb | |
parent | 26a9e8ec2bcae03db4d663d87b44d8708d64fdc2 (diff) | |
download | jenkins.debian.net-da080c472fc415b0ce918f4dd4a1ab143bb1bca4.tar.xz |
rough attempt to grab the good cucumber bits from recent tails
Diffstat (limited to 'features/step_definitions/dhcp.rb')
-rw-r--r-- | features/step_definitions/dhcp.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/features/step_definitions/dhcp.rb b/features/step_definitions/dhcp.rb index 78ee8f2d..ef4d9e15 100644 --- a/features/step_definitions/dhcp.rb +++ b/features/step_definitions/dhcp.rb @@ -1,6 +1,5 @@ Then /^the hostname should not have been leaked on the network$/ do - next if @skip_steps_while_restoring_background - hostname = @vm.execute("hostname").stdout.chomp + hostname = $vm.execute("hostname").stdout.chomp packets = PacketFu::PcapFile.new.file_to_array(:filename => @sniffer.pcap_file) packets.each do |p| # if PacketFu::TCPPacket.can_parse?(p) @@ -10,7 +9,7 @@ Then /^the hostname should not have been leaked on the network$/ do elsif PacketFu::IPv6Packet.can_parse?(p) payload = PacketFu::IPv6Packet.parse(p).payload else - save_pcap_file + @sniffer.save_pcap_file raise "Found something in the pcap file that either is non-IP, or cannot be parsed" end if payload.match(hostname) |