Use relative path to test file

Reverted last commits use of the full path to the test file.
The executable is tested from within the `testpath`, so it's unnecessary.
This commit is contained in:
J. Brandt Buckley 2014-10-01 15:58:23 -07:00 committed by Mike McQuaid
parent d468f2ab81
commit 7f96369477

View file

@ -19,6 +19,6 @@ class P0f < Formula
'RAAAAAIAAABFAABAbvpAAEAGAAB/AAABfwAAAcv8Iyjt2/Pg' \ 'RAAAAAIAAABFAABAbvpAAEAGAAB/AAABfwAAAcv8Iyjt2/Pg' \
'AAAAALAC///+NAAAAgQ/2AEDAwQBAQgKCyrc9wAAAAAEAgAA' 'AAAAALAC///+NAAAAgQ/2AEDAwQBAQgKCyrc9wAAAAAEAgAA'
(testpath / 'test.pcap').write(Base64.decode64(pcap)) (testpath / 'test.pcap').write(Base64.decode64(pcap))
system "#{sbin}/p0f", '-r', "#{testpath}/test.pcap" system "#{sbin}/p0f", '-r', 'test.pcap'
end end
end end