From e06402099ce256405610d0be64760266f969dcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 5 Apr 2026 11:47:12 +0200 Subject: Custom signals to kill spawned process Changelog: Added `killwith` clause to set a signal used to terminate `spawn`ed process. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3e874a4..a7414b3 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,10 @@ Members: `path` : Path to the asset valid during the test execution. +#### `Signal` + +Type representing unix signals sent to processes. Values are `SIGINT`, `SIGTERM`, etc. + #### list Lists are written using bracket notation: @@ -248,7 +252,7 @@ node [on ] Create a node on network `` (or context network if omitted) and assign the new node to the variable ``. ``` -spawn as [on ( | )] [args ] +spawn as [on ( | )] [args ] [killwith ] ``` Spawn a new test process on `` or `` (or one from context) and assign the new process to variable ``. @@ -256,6 +260,7 @@ When spawning on network, create a new node for this process. Extra `` to the tool can be given as a list of strings using the `args` keyword. The process is terminated when the variable `` goes out of scope (at the end of the block in which it was created) by closing its stdin. +If the `killwith` clause is present, it is also sent the given `` at that point. When the process fails to terminate successfully within a timeout, the test fails. ``` -- cgit v1.2.3