diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-12-16 20:54:58 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-12-16 21:51:21 +0100 |
commit | 4547c9887353c6486873876e18f29ae91a5c84b4 (patch) | |
tree | 4597a524c2d3029f6249a86878a60f870762e1dd /src/Run.hs | |
parent | b590f9cbd4cfca3daa33786186837e77b0824387 (diff) |
Changelog: Change working directory of spawned process to node directory
Diffstat (limited to 'src/Run.hs')
-rw-r--r-- | src/Run.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ withNetwork :: Network -> (Network -> TestRun a) -> TestRun a withNetwork net inner = do tcpdump <- liftIO (findExecutable "tcpdump") >>= return . \case Just path -> withProcess (Left net) ProcNameTcpdump (Just softwareTermination) - (path ++ " -i br0 -w '" ++ netDir net ++ "/br0.pcap' -U -Z root") . const + (path ++ " -i br0 -w './br0.pcap' -U -Z root") . const Nothing -> id tcpdump $ inner net |