diff options
| author | Mike McQuaid | 2014-10-02 11:05:34 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-02 11:05:34 -0700 |
| commit | 49525adf74a5b85d222e8a24573eac5d0b6ce133 (patch) | |
| tree | 66dae43c04f3d1adde00680ec44a3af5b728a5dc /Library/Formula | |
| parent | 1885e54100a2267f1cf5d610730ad4c8d01b45c5 (diff) | |
| download | homebrew-49525adf74a5b85d222e8a24573eac5d0b6ce133.tar.bz2 | |
p0f: use existing pcap fixture for test.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/p0f.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Formula/p0f.rb b/Library/Formula/p0f.rb index 10d07b60b..9346815d0 100644 --- a/Library/Formula/p0f.rb +++ b/Library/Formula/p0f.rb @@ -20,12 +20,7 @@ class P0f < Formula end test do - require "base64" - - pcap = "1MOyoQIABAAAAAAAAAAAAP//AAAAAAAA92EsVI67DgBEAAAA" \ - "RAAAAAIAAABFAABAbvpAAEAGAAB/AAABfwAAAcv8Iyjt2/Pg" \ - "AAAAALAC///+NAAAAgQ/2AEDAwQBAQgKCyrc9wAAAAAEAgAA" - (testpath / "test.pcap").write(Base64.decode64(pcap)) - system "#{sbin}/p0f", "-r", "test.pcap" + test_pcap = HOMEBREW_LIBRARY/"Homebrew/test/fixtures/test.pcap" + system "#{sbin}/p0f", "-r", test_pcap end end |
