summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-01-20 21:49:22 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-01-20 21:49:22 +0100
commit7e57c8fddac5c9310efb49d4bc8003659b9e68b4 (patch)
tree2b48ee31e2fa4a7add0308540b38737a126c236e /src/Run.hs
parent5eb83b2a5485f5f735eb77f277819e42e39e8c56 (diff)
Command-line option to disable or force tcpdumpHEADmaster
Changelog: Added comman-line options to set path of tcpdump or disable its use
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Run.hs b/src/Run.hs
index ad108e3..8a95daf 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -253,7 +253,7 @@ withSubnet parent tvname inner = do
withNetwork :: Network -> (Network -> TestRun a) -> TestRun a
withNetwork net inner = do
- tcpdump <- liftIO (findExecutable "tcpdump") >>= return . \case
+ tcpdump <- asks (optTcpdump . teOptions . fst) >>= return . \case
Just path -> withProcess (Left net) ProcNameTcpdump (Just softwareTermination)
(path ++ " -i br0 -w './br0.pcap' -U -Z root") . const
Nothing -> id