diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-05-13 09:06:35 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-05-16 20:29:59 +0000 |
commit | bb00f37f51cf36c6fb4bd3bd6ac68b98bb048841 (patch) | |
tree | 65f8976988a0307e9cd2763de9e70623b79e4c0a /.travis.yml | |
parent | 731b2638534da3f2299c1c90bc23e99112453172 (diff) |
gitlab-ci: run setcap on dumpcap.
This enables capture privileges for 'user' that is used in the tests.
travis.yml has been changed as well to reflect the setcap command in
the docs.
Change-Id: I0584e0df417112b1774b86ef8b28121799efe137
Reviewed-on: https://code.wireshark.org/review/33182
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 6a8898d07d..3574cf0ff6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -120,7 +120,7 @@ script: - cmake --build . --config RelWithDebInfo - cmake --build . --config RelWithDebInfo --target test-programs - if [ "$PCAP" = "OFF" ]; then export PYTEST_ADDOPTS=--skip-missing-programs=dumpcap,rawshark; fi - - if [ "$TRAVIS_OS_NAME" == "linux" -a "$PCAP" = "ON" ]; then sudo setcap "CAP_NET_RAW+eip CAP_NET_ADMIN+eip" run/dumpcap; fi + - if [ "$TRAVIS_OS_NAME" == "linux" -a "$PCAP" = "ON" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi - pytest - cd .. before_cache: |