Skip to content

Commit

Permalink
test: use EPCAP_TEST_EXEC for privs
Browse files Browse the repository at this point in the history
For example, on OpenBSD:

    EPCAP_TEST_EXEC="doas" rebar3 eunit
  • Loading branch information
msantos committed Jul 31, 2016
1 parent be587ab commit eb9206f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/epcap_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ epcap_test_() ->
% Solaris pcap using DLPI requires the interface to be in promiscuous
% mode for outgoing packets to be captured
{ok, Ref} = epcap:start(epcap_dev() ++ [
{exec, os:getenv("EPCAP_TEST_EXEC", "sudo -n")},
inject,
{filter, "tcp and ( port 29 or port 39 )"},
promiscuous
Expand Down

0 comments on commit eb9206f

Please sign in to comment.