mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00:00
test: new test, verify task behavior with conditions
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3e4be9a122
commit
05e6b3e752
4 files changed
+90
No files matched your search
@@ -21,6 +21,11 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
assert_file_contains()
|
||||
{
|
||||
assert "File $1 contains the string $2" "$(texec grep "$2" "$1")"
|
||||
}
|
||||
|
||||
assert_num_children()
|
||||
{
|
||||
assert "$1 services are running" "$(texec pgrep -P 1 "$2" | wc -l)" -eq "$1"
|
||||
|
||||
Reference in new issue
Block a user