From 4547c9887353c6486873876e18f29ae91a5c84b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 16 Dec 2024 20:54:58 +0100 Subject: Change working directory of spawned process to node directory Changelog: Change working directory of spawned process to node directory --- src/Run.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Run.hs') diff --git a/src/Run.hs b/src/Run.hs index b623f52..001d887 100644 --- a/src/Run.hs +++ b/src/Run.hs @@ -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 -- cgit v1.2.3