diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-04-05 11:47:12 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-04-05 12:33:39 +0200 |
| commit | e06402099ce256405610d0be64760266f969dcd0 (patch) | |
| tree | 1c1e10ba0aa2f6dbf9ca04c77a9ad0b8122645ad /README.md | |
| parent | ad00b4534582c5ce94243f7dda3b76d7c0bba021 (diff) | |
Changelog: Added `killwith` clause to set a signal used to terminate `spawn`ed process.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 <name> [on <network>] Create a node on network `<network>` (or context network if omitted) and assign the new node to the variable `<name>`. ``` -spawn as <name> [on (<node> | <network>)] [args <arguments>] +spawn as <name> [on (<node> | <network>)] [args <arguments>] [killwith <signal>] ``` Spawn a new test process on `<node>` or `<network>` (or one from context) and assign the new process to variable `<name>`. @@ -256,6 +260,7 @@ When spawning on network, create a new node for this process. Extra `<arguments>` to the tool can be given as a list of strings using the `args` keyword. The process is terminated when the variable `<name>` 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 `<signal>` at that point. When the process fails to terminate successfully within a timeout, the test fails. ``` |