diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-11-27 20:44:00 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-11-28 22:34:10 +0100 |
commit | d22257b9f43ba30dd3ca1274d1aa61e688585785 (patch) | |
tree | 39407ee4fd3cfcd4fd1e7861c843ce9fc2c9ed92 /src/Run.hs | |
parent | 9c3bfa972d666b5b8cd5eb7a978a264f27cf7292 (diff) |
Remove embedded Expr for some inner TestBlock parameters
Diffstat (limited to 'src/Run.hs')
-rw-r--r-- | src/Run.hs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -162,18 +162,18 @@ evalBlock (TestBlock steps) = forM_ steps $ \case testStepGuard line vars expr DisconnectNode node inner -> do - withDisconnectedUp (nodeUpstream node) $ evalBlock =<< eval inner + withDisconnectedUp (nodeUpstream node) $ evalBlock inner DisconnectNodes net inner -> do - withDisconnectedBridge (netBridge net) $ evalBlock =<< eval inner + withDisconnectedBridge (netBridge net) $ evalBlock inner DisconnectUpstream net inner -> do case netUpstream net of - Just link -> withDisconnectedUp link $ evalBlock =<< eval inner - Nothing -> evalBlock =<< eval inner + Just link -> withDisconnectedUp link $ evalBlock inner + Nothing -> evalBlock inner PacketLoss loss node inner -> do - withNodePacketLoss node loss $ evalBlock =<< eval inner + withNodePacketLoss node loss $ evalBlock inner Wait -> do void $ outPromptGetLine "Waiting..." |