summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-09-13 21:35:02 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-09-13 23:39:16 +0200
commit8e3d03e55793b49dc6844b23877c84d111e8d7d1 (patch)
treea9f44351019a3b3016259d117d6c906f66cbb623 /src/Run.hs
parent866d539bb9e6b9cf1676bff2e592e73a94d6f572 (diff)
Get call stack information from function applicationHEADmaster
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Run.hs b/src/Run.hs
index 3ecd7d4..2e5d641 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -208,8 +208,8 @@ runStep = \case
Flush p regex -> do
atomicallyTest $ flushProcessOutput p regex
- Guard line vars expr -> do
- testStepGuard line vars expr
+ Guard stack expr -> do
+ testStepGuard stack expr
DisconnectNode node inner -> do
withDisconnectedUp (nodeUpstream node) $ runStep inner
@@ -343,6 +343,6 @@ expect sline p (Traced trace re) tvars inner = do
Nothing -> exprFailed (T.pack "expect") (CallStack [ ( sline, trace ) ]) (Just $ procName p)
-testStepGuard :: SourceLine -> EvalTrace -> Bool -> TestRun ()
-testStepGuard sline vars x = do
- when (not x) $ exprFailed (T.pack "guard") (CallStack [ ( sline, vars ) ]) Nothing
+testStepGuard :: CallStack -> Bool -> TestRun ()
+testStepGuard stack x = do
+ when (not x) $ exprFailed (T.pack "guard") stack Nothing